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

WAB Engine REMOVE, RESTORE and RECOVERY CURL Contracts

permalink THAMER
#api#bitcoin#curl#json#wab-engine

Short answer

REMOVE clears local Engine state; RESTORE imports an existing wallet; RECOVERY requests sensitive recovery material. These are distinct operations, not wallet creation.

Command

# REMOVE — destructive local-state operation
curl -sS -X POST "$BASE_URL/api/v5/id/remove" \
  -H "X-BTC-KEY: $KEY" -H "Content-Type: application/json" \
  --data-binary "$(jq -n --arg id "$ID" --arg secret "$SECRET" '{btc_id:$id,btc_secret:$secret,confirm:"REMOVE"}')" | jq .

# RESTORE — existing wallet only
curl -sS -X POST "$BASE_URL/api/v5/id/restore" \
  -H "Content-Type: application/json" \
  -d "$(jq -n --arg id "$ID" --arg key "$KEY" --arg secret "$SECRET" '{btc_id:$id,btc_key:$key,btc_secret:$secret}')" | jq .

# RECOVERY — prints sensitive material
curl -sS -X POST "$BASE_URL/api/v5/id/recovery" \
  -H "X-BTC-KEY: $KEY" -H "Content-Type: application/json" -d '{}' | jq .

Explanation

The REMOVE payload requires an explicit confirm:"REMOVE" value, BTC ID and BTC SECRET, plus the BTC KEY authorization header. RESTORE supplies all three credentials in JSON. RECOVERY uses the BTC KEY header and an empty JSON object. These are the exact shapes in the provided installed reference.

Safety and interpretation

Do not execute REMOVE casually; verify recovery first. RECOVERY output can contain BTC SECRET: do not save or publish it. Removing local records does not erase on-chain funds or transaction history.

Reference

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