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

Machine-Readable Bitcoin Contracts: Discovery, Errors and Evidence

permalink THAMER
#ai-agents#bitcoin-engineering#curl#json#wab#wallet-ai-bitcoin

Research status: Engineering philosophy based on the stated product architecture and reported laboratory evidence. New examples and procedures are illustrative and have not been executed.

Discovery before execution

The reported Codex health experiment retrieved a v5 directory advertising twelve endpoints: eight Bitcoin and four identity operations. The directory described protocol WAB, version 1.0 and bbolt storage. The directory is evidence of advertised operations, not a complete request schema or proof that every operation is authorized.

A documented failure is valuable

In the first wallet experiment, a receive request returned HTTP 200 but ok: false and AUTH_REQUIRED. After identity restoration returned HTTP 201 and ok: true, the next receive request succeeded. The distinction between transport and application status is essential for an autonomous client.

| Observation | Client interpretation |
|---|---|
| HTTP response received | Transport completed |
| ok: false | Application rejected or could not complete operation |
| AUTH_REQUIRED | Follow documented identity workflow; do not guess credentials |
| BALANCE_WARMING | Reconciliation incomplete; do not interpret as zero |
| Mempool observation | Transaction observed, not confirmed |

Designing knowledge for agents

Publish operation purpose, required parameters, units, authentication requirements, response fields and error semantics. Include sanitized observed examples and explicitly label hypothetical examples. A machine-readable index should link to the exact version of each contract. An agent must treat retrieved documentation as data, not as authority to spend or disclose secrets.

Evidence references

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

The directory above is a historical laboratory snapshot. It should not replace the current API reference when implementing a new client.

Primary references and related research

  • [From SSH to a Bitcoin Testnet Payment with WAB](/ask/wab-agent-first-testnet-payment)
  • [Checking WAB API v5 Health and Endpoint Discovery](/ask/wab-api-v5-health-and-discovery)
  • [Local execution control](/docs/wab-philosophy-agent-local-execution-control)
  • [Flying Wallet architecture](/docs/wab-philosophy-flying-wallet-architecture)

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