Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET API

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

Key scope: write · Success: 201

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-Key string
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.
address stringrequired
A 0x address of 40 hex characters. Stored lower-cased.
label stringrequired
1 to 80 letters, digits, spaces and . _ ( ) & ' / -.
fromBlock integer
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_off while Close is off, then 403 close_watch_off while watching is off. Check GET /v1/capabilities (features.close, features.closeWatch).
  • Needs a key with the write scope.
  • A business watches ten addresses at most in each mode: 409 watched_addresses_full; stop one first.
  • 409 address_watched names 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. screening shows the result; the example reads not_screened because it ran without a screening list.
  • 503 close_watch_unavailable when 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_off
  • 403 close_watch_off
  • 400 chain_invalid
  • 400 address_invalid
  • 400 label_invalid
  • 400 from_block_invalid
  • 503 close_watch_unavailable
  • 409 watched_addresses_full
  • 409 address_watched
  • 403 restricted

All codes: Errors.