How Do I Generate a Mainnet SegWit Receive Address?
Short answer
Use net=main and type=segwit. A typical native SegWit mainnet address begins with bc1q.
CURL command
The following command follows the examples published in the THAMER API reference. Set BASE_URL to your own trusted Engine endpoint (the reference uses http://127.0.0.1:7070). Commands requiring authorization use KEY, your private BTC KEY. Install curl and jq locally.
RESP=$(curl -sS -X POST "$BASE_URL/api/v5/btc/watch/create" \
-H "X-BTC-KEY: $KEY" \
-H "Content-Type: application/json" \
-d '{"net":"test","type":"taproot","expected_sat":50000,"ttl_sec":3600}')
echo "$RESP" | jq .
export WATCH_ID=$(echo "$RESP" | jq -r '.result.watch_id')
echo "WATCH_ID=$WATCH_ID"
How it works
Mainnet addresses can receive real BTC. Verify the address against your own wallet context and avoid mixing mainnet with Testnet.
Important distinction
This is a documented command example, not a live execution or proof of a successful wallet operation. API responses and availability depend on the installed Engine, its wallet state, and Bitcoin Core. Never expose BTC KEY or BTC SECRET in logs or public examples.
