Bitcoin Payment Verification and Wallet Balance Reconciliation in WAB
Research basis
Two Codex experiments provide complementary observations: [the initial Testnet payment](/ask/wab-agent-first-testnet-payment) and [the SegWit to Taproot transfer](/ask/wab-agent-taproot-testnet-transfer).
The first payment was 132,437 satoshis. The lab operator sent the funds, while Codex verified the destination output and mempool status. Balance and UTXO calls returned BALANCE_WARMING during the initial scan. That initial observation ended before reconciliation. The later transfer report records the same amount as confirmed and spendable in the SegWit source.
Independent evidence layers
A transaction identifier identifies a transaction, not a guarantee of settlement. A matching output establishes the observed destination and amount. Mempool visibility indicates an unconfirmed transaction. Confirmation indicates block inclusion as reported by the status source. Wallet balance reconciliation is a separate application observation, and spendable balance is the field relevant to subsequent spending decisions.
1{
2 "address": "tb1psh2cccytue3semqpafwrdelse99jk5sydmftwyyjv5qzlekewpwqn9q3lm",
3 "segwit_before": {
4 "confirmed_sat": 132437,
5 "spendable_sat": 132437
6 },
7 "taproot_before": {
8 "confirmed_sat": 0,
9 "incoming_unconfirmed_sat": 0
10 },
11 "send": {
12 "txid": "c00fa63c0c1e96cf0230234e790a03d18bcbc9b65fb8667e061f458661488334",
13 "requested_sat": 13000,
14 "recipient_sat": 11700,
15 "sent_sat": 11700
16 },
17 "initial_tx_status": {
18 "status": "mempool",
19 "confirmations": 0
20 },
21 "taproot_after": {
22 "confirmed_sat": 0,
23 "incoming_unconfirmed_sat": 11700
24 },
25 "taproot_recheck": {
26 "confirmed_sat": 0,
27 "incoming_unconfirmed_sat": 11700
28 },
29 "explorer": {
30 "confirmed": false,
31 "destination_sat": [
32 11700
33 ],
34 "miner_fee_sat": 257
35 },
36 "delivery_followup": {
37 "checked_at": "2026-11-28 03:37:33 UTC",
38 "tx_status": {
39 "ok": true,
40 "status": "confirmed",
41 "confirmations": 1,
42 "block_hash": null
43 },
44 "taproot_balance": {
45 "ok": true,
46 "confirmed_sat": 11700,
47 "incoming_unconfirmed_sat": 0,
48 "spendable_sat": 11700
49 }
50 }
51}The Taproot experiment initially recorded 11,700 incoming unconfirmed satoshis and zero confirmed. At 03:37:33 UTC, the engine reported one confirmation, 11,700 confirmed and spendable satoshis, and zero incoming unconfirmed satoshis.
The earlier explorer snapshot still contains confirmed: false because it represents the initial observation. The later confirmation is an engine observation, not a second explorer verification. The recorded block_hash is null; no block identifier can be inferred from it.
Proposed agent behavior
Treat BALANCE_WARMING as a non-ready observation rather than a zero balance. Use bounded polling with backoff, record timestamps and preserve transaction identity across checks. Do not initiate another payment merely because reconciliation is delayed. Apply an explicit confirmation policy appropriate to the service being delivered; one observed confirmation is not a universal finality guarantee.
These recommendations are integration guidance, not evidence that a polling agent or merchant delivery policy has already been implemented.
WAB API reference
https://thamer.org/api
