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

Checking WAB API v5 Health and Endpoint Discovery

permalink THAMER
#ai-agents#api#bitcoin#json#testnet#wab

The lab checks

At 02:39 UTC on November 28, 2026, we sent two GET requests to WAB from inside the lab VPS. Both returned HTTP 200 with application/json, and jq parsed each response as a JSON object.

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 .

Bitcoin node health

The health response reported ok: true and service: btc. Both networks reported synced: true, lag_blocks: 0, and a connected ZMQ sequence feed.

  • Mainnet reported 977884 blocks and 977884 headers.
  • Testnet reported 5373987 blocks and 5373987 headers.

Block and header counts are a point-in-time observation. An automated check can validate counter types, sync status, and acceptable lag without hard-coding the recorded heights.

Endpoint discovery

The API directory reported protocol WAB, version 1.0, and bbolt storage. It advertised 12 endpoints across two groups. The eight Bitcoin endpoints covered receive, address monitoring, balance, UTXOs, send, transaction status, and health. The four identity endpoints covered restore, recovery, remove, and identity lookup.

The directory tells a client which operations are advertised. Each operation needs its own request to verify its behavior. For a basic smoke test, check that the directory exposes the expected groups and that the health endpoint reports the expected status for both networks.

Live JSON examples

These response examples were captured in a follow-up request. Block heights can differ from the measurements in the lab notes above.

The /api/v5 endpoint returned this directory.

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 health snapshot keeps selected public fields from the live response. These lines show the top-level application status and service name.

JSON · 2 lines
2  "ok": true,
3  "service": "btc",
Source: /repo/wab-api-v5/btc-health-summary.json · Raw file · Read-only excerpt

The full summary includes the node status and block and header counts for both networks.

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

WAB API reference
https://thamer.org/api

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