WAB Wallet Identity Restoration and Agent Authentication
Research basis
[From SSH to a Bitcoin Testnet Payment with WAB](/ask/wab-agent-first-testnet-payment) records wallet creation, an authentication failure, identity restoration and a successful receive request. The original response bodies for this experiment are not included in the archive; the following sequence is based on the lab narrative.
Identity lifecycle
The public POST /create request returned HTTP 200 with ok: true. Credentials were stored privately on the VPS. The initial Testnet SegWit receive request returned HTTP 200 with ok: false and AUTH_REQUIRED. The same credentials were then used with POST /api/v5/id/restore, which returned HTTP 201 and ok: true. A subsequent receive request succeeded and returned result.address.
Creation and restoration are distinct operations. The observed sequence demonstrates that a newly created identity was not immediately usable for receive on the tested local engine. It does not establish that every AUTH_REQUIRED response has the same cause.
Client decision logic
A proposed agent integration should inspect transport success, HTTP status, JSON validity, application status and required result fields separately. HTTP 200 alone is insufficient. On AUTH_REQUIRED, verify the intended identity and engine context before attempting an authorized restoration. Retry only after checking restoration success; bound retries and report unresolved errors.
The following directory identifies the available identity operations without exposing credentials:
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}Credential boundary
Keep wallet credentials outside published articles, command transcripts and repositories. Use the public API reference for current request fields rather than guessing secret formats or restoration payloads. The later transfer experiment also reports that the lab user could not read /etc/btc/curl.txt and used public documentation instead. This is evidence of a useful documentation path, not a complete security audit.
See also [the transfer experiment](/ask/wab-agent-taproot-testnet-transfer).
WAB API reference
https://thamer.org/api
