WAB Agent API Operations and Tool Boundaries
A tool adapter can expose HEALTH, RECEIVE, BALANCE and WATCH as distinct functions. SEND belongs to a separately authorized payment role. RECEIVE allocates an address and WATCH creates a record, so neither should be treated as a pure read or blindly retried after an ambiguous timeout.
curl -fsS -X POST https://api.wab.codes/api/v5/btc/wallet/balance \
-H "X-BTC-KEY: $KEY" -H 'Content-Type: application/json' \
-d '{"net":"test","type":"taproot"}' | jq .
Set KEY privately for a disposable wallet. Disable shell tracing and avoid storing raw output in public logs. Check HTTP status and JSON ok independently. A tool should validate network, address type and response structure, then return only the fields needed by the agent. Never infer spendable balance from a single unconfirmed observation. Test missing authorization, invalid network and timeout handling in a controlled environment; do not load-test the public lab without permission.
Laboratory: https://thamer.org/lab
API reference: https://thamer.org/api
Terms: https://thamer.org/tos
