Skip to main content
Withdrawals move USDC out of the user’s on-chain vault to an external destination. Every withdrawal is:
  1. EIP-712 signed by the user against the vault’s WithdrawERC20 typed-data struct.
  2. Compliance-screened (banned list, account restrictions, AML screening of your wallet and the destination, amount). A banned or AML-blocked destination, or an active restriction that blocks withdrawals, is refused on the spot: the response carries status: "rejected" with a code (wallet_banned, aml_blocked, restriction_active) and no withdrawal is created. A blocked account or active withdrawal hold answers 403 (account_blocked or ACCOUNT_PAUSED). Other flags (such as PEP status or geo mismatches), and amounts above the auto-approve threshold, put the withdrawal in MLRO_REVIEW for human compliance review. See what sends a withdrawal to review.
  3. Backend co-signed with a second EIP-712 signature. Dual signatures are both required on-chain; neither party can move funds alone, and the contract enforces that the vault owner and backend signer must be distinct keys (OwnerAndBackendSignerMustDiffer).
  4. Submitted on-chain by PredictStreet’s backend submitter (PredictStreet pays gas).
  5. Confirmed when the on-chain tx receipt is observed.

State machine

See State machine detail.
Unlike split/merge operations which provide a manual release endpoint, withdrawals have no manual unlock endpoint. When a withdrawal’s signed deadline passes before execution on-chain, the platform’s backend chain-watcher automatically transitions it to EXPIRED and refunds the locked balance.

Withdrawal security

Two opt-in, per-wallet controls gate a withdrawal request before it enters the flow above (enforced when the platform enables withdrawal-security; SSO partners are exempt):
  • Address whitelist — once a wallet has any whitelisted address, withdrawals are allowed only to listed destinations (403 withdrawal_address_not_whitelisted otherwise). No entries = unrestricted.
  • 2FA (TOTP) — once active, every withdrawal must carry a totpCode (403 totp_required / totp_invalid otherwise). Manage both under /api/me/withdrawal-security/*.
The two are independent and stack. The existing AML / sanctions screen and high-value review run regardless.
A generation-2 vault withdraws only to your own wallet or a platform-listed address. See Orders and vault operations.

Bridge did not complete

A withdrawal to another chain (bridge) first pays the USDC to your own ADI wallet, then bridges it. If that bridge step has failed for good and the withdrawal is CONFIRMED (not refunded), you get a withdrawal_bridge_incomplete notification (category withdrawal-bridge-incomplete; on the /ws/user notifications channel, in the app and by e-mail, never as a push; it cannot be switched off). The notice goes out once both are true, in whichever order they happen; none is sent for a failure caused by a platform misconfiguration. payload is { id, amount, token, destinationChain, adiWallet }: the withdrawal id, the amount and its token (for example USDC), the ADI wallet that holds the funds (null when none is known) and the display name of the chain they did not reach (for example Ethereum). The bridge is not retried: deposit the funds to your PredictStreet balance and withdraw to that chain again. At most one such notice is sent per withdrawal.

Typical timeline

  • Happy path (no flag): under 10s from request to CONFIRMED on testnet; target < 60s on mainnet.
  • MLRO review path: a compliance decision, typically within 1 business day. If your signed deadline passes before the withdrawal executes, it ends EXPIRED and the amount is refunded.

User-visible balance effects

Partner & MM notes

Market makers running high withdrawal cadence should:
  • Withdrawals are not restricted to addresses that deposited before (see Deposit sources). To lock withdrawals to known destinations, use the address whitelist.
  • API Key scopes: Requesting a withdrawal (POST /api/withdrawals/request) and cancelling a pending withdrawal (POST /api/me/withdrawals/{id}/cancel) accept either the broad vault:write scope or the narrow withdraw:write scope. Listing history and deposit sources (GET /api/me/withdrawals/*) requires portfolio:read.
  • Multi-wallet keys: Partner keys with multi_wallet permissions must supply the X-User-Wallet: 0x... header on every request naming the acting wallet.
  • Status monitoring: Poll GET /api/me/withdrawals/{id} for state transitions, or subscribe to user_activity on /ws/user (portfolio:read, no ids), which pushes a withdrawal_<state> frame (for example withdrawal_requested, withdrawal_approved, withdrawal_flagged_for_review, withdrawal_submitted, withdrawal_rejected, withdrawal_cancelled) as the request moves through review and submission. The on-chain success is not a user_activity frame: it arrives as withdrawal_confirmed on vault_activity (ids: [<your vault address>]).

Next

Dual-sig flow

Why two signatures, how the co-sign works.

EIP-712 struct

WithdrawERC20 struct + signing.

State machine

All states + transitions.

Deposit sources

Read-only list of the addresses that funded your vault.

Withdrawal 2FA

TOTP second factor on withdrawals.

Address whitelist

Restrict withdrawals to approved destinations.