WAB Stage 2: BALANCE, UTXOS and Mempool JSON Reference
BALANCE and UTXOS request patterns
curl -sS -X POST "$BASE_URL/api/v5/btc/wallet/balance" \
-H "X-BTC-KEY: $KEY" -H "Content-Type: application/json" \
-d '{"net":"test","type":"taproot"}' | jq .
curl -sS -X POST "$BASE_URL/api/v5/btc/wallet/utxos" \
-H "X-BTC-KEY: $KEY" -H "Content-Type: application/json" \
-d '{"net":"test","type":"taproot"}' | jq .
Observed state transition
Before confirmation: balance_sat: 0, confirmed_sat: 0, incoming_unconfirmed_sat: 45000, utxo_count: 0, utxos: [], status: fresh, unconfirmed_included: false.
After confirmation: balance_sat: 45000, confirmed_sat: 45000, utxo_count: 1, with txid: 6a0c20d75170144a10e57b555a6439b69175457840841d6361a611ca0794a8e7, vout: 0, chain: 0, index: 1.
Key distinctions
confirmed_sat: confirmed wallet value in the returned snapshot.
incoming_unconfirmed_sat: attributed incoming value observed but not included in confirmed balance.
lag_blocks: reported scan lag, which varied between zero and one.
mempool_checked_at: mempool observation time, distinct fromchecked_at.
unconfirmed_attribution_reason: mempool_pass_pending: mempool attribution not available at that instant; not a confirmed-balance failure.
Source: test2.txt, lines 311–382, 411–563 and 564–593.
