WAB Engine SEND JSON and Idempotency Header
Short answer
SEND is a POST request with BTC KEY authorization, a network and address-type selector, a destination, an amount in satoshis, and an idempotency header.
Command
# Template only: replace tb1qDESTINATION with a real Testnet address
RESP=$(curl -sS -X POST "$BASE_URL/api/v5/btc/wallet/send" \
-H "X-BTC-KEY: $KEY" \
-H "X-BTC-IDEMPOTENCY: send-$(date +%s)" \
-H "Content-Type: application/json" \
-d '{"net":"test","type":"segwit","to":"tb1qDESTINATION","amount_sat":13000}')
echo "$RESP" | jq .
Explanation
The installed reference uses amount_sat:13000 and a placeholder address. It also includes Testnet Taproot and Mainnet variants. The idempotency header helps identify a logical send request. If a request times out, reconcile its result before retrying, and reuse the same key for the same logical operation rather than generating a new one.
Safety and interpretation
tb1qDESTINATION is not a valid Bitcoin address. SEND can broadcast real funds on Mainnet. The wallet’s verified signed fee law applies; never interpret amount_sat as a guaranteed recipient net amount without checking the response and applicable law.
