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 Discovered and Understood the WAB Bitcoin Engine

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

Reading the interface before writing the client

At 02:39 UTC on November 28, 2026, the laboratory queried the WAB health endpoint and API directory. Both returned HTTP 200 and JSON that jq could parse. The commands recorded in the lab report were:

export BASE_URL="http://127.0.0.1:7070"
curl -sS "$BASE_URL/api/v5/btc/health" | jq .
curl -sS "$BASE_URL/api/v5" | jq .

The health response reported synchronized mainnet and testnet nodes, zero block lag and connected ZMQ sequence feeds. Mainnet was at 977884 and testnet at 5373987. These are historical observations, not constants for an SDK.

A directory is a map, not a test suite

The directory advertised twelve endpoints: eight Bitcoin operations and four identity operations. It reported protocol WAB, version 1.0 and bbolt storage. This gave Codex a vocabulary for subsequent requests. It did not prove that every operation would succeed with arbitrary credentials or parameters.

Later, while preparing a Taproot transfer, the lab account could not read /etc/btc/curl.txt. Instead of escalating privileges, the agent used the public API reference. That is a useful example of documentation serving as an integration boundary.

From discovery to engineering

A future client should validate the response envelope, distinguish transport errors from application errors and keep network selection explicit. The agent's initial checks were not a complete conformance suite; they were the evidence needed to begin one.

JSON · 24 lines
1{
2  "description": "WALLET AI BITCOIN \u2014 Sovereign Bitcoin Wallet Engine",
3  "endpoints": {
4    "bitcoin": [
5      "POST /api/v5/btc/wallet/receive",
6      "POST /api/v5/btc/watch/create",
7      "POST /api/v5/btc/watch/list",
8      "POST /api/v5/btc/wallet/balance",
9      "POST /api/v5/btc/wallet/utxos",
10      "POST /api/v5/btc/wallet/send",
11      "POST /api/v5/btc/tx/status",
12      "GET  /api/v5/btc/health"
13    ],
14    "identity": [
15      "POST /api/v5/id/restore",
16      "POST /api/v5/id/recovery",
17      "POST /api/v5/id/remove",
18      "GET  /api/v5/id/me"
19    ]
20  },
21  "protocol": "WAB",
22  "storage": "bbolt",
23  "version": "1.0"
24}
Source: /repo/wab-api-v5/api-index.json · Raw file · Read-only excerpt
JSON · 18 lines
1{
2  "ok": true,
3  "service": "btc",
4  "nets": {
5    "main": {
6      "ok": true,
7      "synced": true,
8      "blocks": 977885,
9      "headers": 977885
10    },
11    "test": {
12      "ok": true,
13      "synced": true,
14      "blocks": 5373989,
15      "headers": 5373989
16    }
17  }
18}
Source: /repo/wab-api-v5/btc-health-summary.json · Raw file · Read-only excerpt

Primary lab references

https://thamer.org/api

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

https://thamer.org/ask/wab-api-v5-health-and-discovery

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