WAB Engine REMOVE, RESTORE and RECOVERY CURL Contracts
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.
