Spot withdraw — preview / execute
POST /v1/wallet/withdraw/spot — Preview a cross-chain spot withdraw (`confirm: false`) or execute it (`confirm: true`, with `quoteHash` + `idempotencyKe
POST /v1/wallet/withdraw/spot
Preview a cross-chain spot withdraw (confirm: false) or execute it (confirm: true, with quoteHash + idempotencyKey echoed from the preview). Execute needs the on-chain tokenAddress, which the caller reads off the user's spot holdings. The preview reports which second factor the execute call must carry in verification (totp or email); send the six-digit code as totpCode or emailCode accordingly. Request a mailed code from POST /v1/security/email-code. If an earlier withdrawal from the same wallet has an unknown outcome, the preview lists it under unresolved; execute must echo every listed operationId in acknowledgeUnresolved, otherwise it returns 409 withdraw_unresolved_ack_required and sends nothing. Retrying the earlier withdrawal itself (its idempotencyKey or quote) still returns 503 withdraw_outcome_unknown.
| Method | POST |
| Path | /v1/wallet/withdraw/spot |
| Auth | Authorization: Bearer <token> required by default (configured or generated token); optional only in explicit loopback development mode (MINARA_ALLOW_INSECURE_BIND=1, with GATEWAY_AUTH_TOKEN unset) |
| Category | perps |
Request body
{ "confirm": false, "token": "USDC", "chain": "arbitrum", "address": "0x...", "amount": "10.5", "tokenAddress": "0x..." }