Automated WATCH CREATE and WATCH LIST for WAB Agents
WATCH is a merchant-side payment observation tool, not spending authorization. The documented API accepts expected_sat and ttl_sec when creating a watch. The following example requests 1,000 test satoshis for a 600-second window; actual acceptance depends on the service.
curl -fsS -X POST https://api.wab.codes/api/v5/btc/watch/create \
-H "X-BTC-KEY: $KEY" -H 'Content-Type: application/json' \
-d '{"net":"test","type":"taproot","expected_sat":1000,"ttl_sec":600}' | jq .
curl -fsS -X POST https://api.wab.codes/api/v5/btc/watch/list \
-H "X-BTC-KEY: $KEY" -H 'Content-Type: application/json' \
-d '{"net":"test","type":"taproot"}' | jq .
Persist watch_id, address, expected amount and expiry from the successful response. Match the exact watch when polling; use bounded backoff. Do not create duplicate watches after uncertain responses. SEEN is provisional mempool evidence, not irreversible settlement. A developer-defined delivery handler can use a durable order identifier to prevent duplicate fulfillment. No webhook endpoint or delivery guarantee is assumed here. Testnet only; no real funds.
Laboratory: https://thamer.org/lab
API reference: https://thamer.org/api
Terms: https://thamer.org/tos
