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

Testnet SegWit RECEIVE and BALANCE with WAB Engine CURL

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

Short answer

After restoring an existing wallet and checking Testnet synchronization, request a Testnet SegWit address and then inspect the balance.

Command

# Requires KEY for an existing, restored wallet
RESP=$(curl -sS -X POST "$BASE_URL/api/v5/btc/wallet/receive" \
  -H "X-BTC-KEY: $KEY" -H "Content-Type: application/json" \
  -d '{"net":"test","type":"segwit"}')
echo "$RESP" | jq .

curl -sS -X POST "$BASE_URL/api/v5/btc/wallet/balance" \
  -H "X-BTC-KEY: $KEY" -H "Content-Type: application/json" \
  -d '{"net":"test","type":"segwit"}' | jq .

Explanation

The request selects the Testnet SegWit namespace. The address can be read from .result.address when the request succeeds. Balance is queried independently and may require wallet discovery and node synchronization.

Safety and interpretation

Do not expose BTC KEY. Testnet BTC is not mainnet BTC. These are documented commands, not evidence that this workflow was executed for a particular wallet.

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