SET Crypto API Suite · Positions and watched addresses
Watch an address: SET reads its USDC transfers on Base or Ethereum
POST/v1/close/watched_addresses
Starts watching an address: SET reads its USDC transfers on Base or Ethereum from fromBlock onward, a range at a time, a few blocks behind the chain's head. Each transfer becomes a verified chain record, matched like an uploaded row; one that nothing explains is a missing_provider exception. Answers 201.
Headers
Idempotency-Keystring- Any unique string, so a retry runs once. See Idempotency.
Body
chain"base" | "ethereum"required- The chain to read. Anything else answers 400
chain_invalid. addressstringrequired- A 0x address of 40 hex characters. Stored lower-cased.
labelstringrequired- 1 to 80 letters, digits, spaces and
. _ ( ) & ' / -. fromBlockinteger- The first block to read, 0 or more. Defaults to the chain's head now; a block past the head answers 400
from_block_invalid.
Notes
- SET Close is switched on per deployment, and address watching has its own switch: 403
close_offwhile Close is off, then 403close_watch_offwhile watching is off. CheckGET /v1/capabilities(features.close,features.closeWatch). - Needs a key with the
writescope. - A business watches ten addresses at most in each mode: 409
watched_addresses_full; stop one first. - 409
address_watchednames the watched address that already has this chain and address. - The address is sanctions-screened; a listed address is refused 403
restricted, with no reason given.screeningshows the result; the example readsnot_screenedbecause it ran without a screening list. - 503
close_watch_unavailablewhen the deployment cannot read that chain or the chain could not be read. - Close reads 10 blocks behind the head on Base and 12 on Ethereum. Staging reads the test networks (Base Sepolia, Ethereum Sepolia).
- In the example the chain's head was block 1000.
- This example is a recorded run of SET's own code (wallet release
e9b03447) with a sandbox key; ids and times are that run's.
Errors
403 close_off403 close_watch_off400 chain_invalid400 address_invalid400 label_invalid400 from_block_invalid503 close_watch_unavailable409 watched_addresses_full409 address_watched403 restricted