THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

How Codex Executed Its First Bitcoin Testnet Payment

permalink THAMER
#ai-agents#bitcoin#chatgpt#codex#engineering#wab

From receiving to spending

The first wallet experiment had a human-funded input: 132,437 testnet satoshis. Codex had verified the destination output but initially encountered BALANCE_WARMING. Receiving money was not yet proof that the agent could execute a spend. The next report starts with that amount available in the SegWit wallet and an empty Taproot balance.

The agent could not read /etc/btc/curl.txt under its laboratory account. Rather than request broader permissions, it used the public API reference. It obtained a Testnet Taproot address and submitted a SegWit SEND request for 13,000 satoshis with a dedicated idempotency key. The engine returned ok: true and reported a recipient amount of 11,700 satoshis.

Following the money

The explorer showed a recipient output of 11,700 satoshis and a miner fee of 257 satoshis. The requested amount exceeded the recipient output by 1,300 satoshis. These figures must not be combined into a claim about total wallet debit without examining all inputs and outputs. The distinction is especially important for SDKs that display a quote before a payment.

JSON · 51 lines
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 first observation was mempool visibility. At 03:37:33 UTC on November 28, the agent reported one confirmation and a Taproot balance of 11,700 confirmed satoshis with no incoming unconfirmed funds. The story therefore has a concrete endpoint: a confirmed transfer between two address types, not just a successful HTTP response.

What the agent learned

The engine performed the wallet operation; Codex supplied the request and verified its effects. A coding agent need not implement Bitcoin signing to use a documented wallet interface. It does need to preserve request identity and distinguish submission, confirmation and wallet reconciliation. A future SDK should expose these as separate observations rather than a single success flag.

Primary lab references

https://thamer.org/api

https://thamer.org/ask/wab-agent-first-testnet-payment

https://thamer.org/ask/wab-agent-taproot-testnet-transfer

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects