watchers

WATCHER: get a signed callback the moment a crypto address...

WATCHER: get a signed callback the moment a crypto address transacts. Arm once, pay once (no account, no API key) — we watch Base, Ethereum, or Bitcoin and POST your custom payload to callbackUrl when the address sends/receives native coins, ERC-20s, or ERC-721s. Filter by direction (in/out/both), asset type, and a USD minimum (minValueUsd) to skip dust. Bounded by a 30-day / 25-fire window. Deliveries are EIP-191-signed by our published key (verify offline) and retried with exponential backoff; missed pushes are recoverable via watchers.status. Returns a watcherId.

post/api/watchers/crypto-address-activity

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/watchers/crypto-address-activity
  • Auth: API key in header PAYMENT-SIGNATURE

Request body

chain'base' | 'ethereum' | 'bitcoin' required

Which chain to watch: base, ethereum, or bitcoin.

addressstring required

The address to watch — an EVM address (0x… 40 hex) for base/ethereum, or a Bitcoin address (bc1…/1…/3…).

callbackUrlstring uri required

Where we POST the event. Any http(s) URL; the JSON body is signed (verify with X-2s-Signature). e.g. https://your-agent.app/hooks/wallet

direction'in' | 'out' | 'both'

Which flows to fire on: "in" = address received, "out" = address sent, "both" = either. Default: both.

assetTypesstring[]

Limit to asset kinds: any of "native" (ETH/BTC), "erc20" (tokens), "erc721" (NFTs). Omit to watch all. EVM only — Bitcoin is always native. e.g. ["erc20"] for token transfers only.

minValueUsdnumber

Only fire when the transfer is worth at least this many USD — filters out dust/spam. e.g. 100 ignores anything under $100. Omit to fire on any non-zero amount.

payloadobject

Arbitrary JSON, echoed back verbatim in every callback so you can route/identify the event on your side. e.g. {"agentId":"a1","reason":"treasury-monitor"}

expiresInSecondsinteger

How long the watch stays active, in seconds. Default 2592000 (30 days), max 7776000 (90 days). e.g. 86400 = 1 day.

maxFiresinteger

Stop after this many callbacks. Default 25, max 1000. The watch ends at whichever comes first — maxFires or expiry.

labelstring

Optional free-text tag to recognize this watcher later. e.g. "exchange-cold-wallet".

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.