Testnet SegWit RECEIVE and BALANCE with WAB Engine CURL
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.
