Skip to main content
GET
Estimate the fee for a prospective withdrawal

Authorizations

X-Api-Key
string
header
required

Partner / integrator key — format ps_live_<keyId>_<secret>. Partner keys are issued by PredictStreet; a user can also create keys bound to their own wallet from their account settings in the web app. Never ship to a browser. multi_wallet partners must additionally send X-User-Wallet: 0x<40-hex> on every authenticated request to declare the acting wallet. See the API keys guide for scope taxonomy, partner kinds, rate limits, and rotation procedure.

Scopes

portfolio:read

Headers

X-User-Wallet
string

Required for multi_wallet partners on every authenticated request; ignored for single_wallet. Declares the acting end-user wallet for this request — drives KYC checks, balances/positions/orders attribution, rate-limit buckets, and audit. Lower-cased server-side. Missing on a multi_wallet key → 401 api_key_user_wallet_required; malformed → 401 api_key_user_wallet_invalid. The on-chain CTFExchange/Vault contracts still verify EIP-712 signer ↔ vault binding, so loosening API-layer attribution is safe by construction.

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3"

Query Parameters

amount
string
required

USDC amount: an unsigned decimal string above 0 and below 1e15, at most 64 characters, without a sign, an exponent or spaces, and with no non-zero digit after the 6th decimal place (125.50, .5, 10.1000000; not 0.1234567); else 400 invalid_request (RND-4271).

Required string length: 1 - 64
Pattern: ^(?:0*[1-9][0-9]{0,14}(?:\.[0-9]{1,6}0*)?|0*\.(?:[1-9][0-9]{0,5}|0[1-9][0-9]{0,4}|00[1-9][0-9]{0,3}|000[1-9][0-9]{0,2}|0000[1-9][0-9]?|00000[1-9])0*)$
token
string
required

Token symbol (currently only USDC). 1 to 32 characters without spaces or control characters; else 400 invalid_request.

Required string length: 1 - 32
destination
string
required

Destination EOA: 0x + 40 hex characters (else 400 invalid_request). A mixed-case value whose EIP-55 checksum does not match is 400 destination_checksum_invalid; all-lowercase or all-uppercase hex is valid.

Pattern: ^0x[0-9a-fA-F]{40}$
bridge
string

Set true when the withdrawal bridges to Ethereum — only bridge withdrawals may carry a network fee. true or false in any case; an empty value counts as omitted; anything else is 400 invalid_request.

Example:

"true"

Response

200 - application/json

OK

token
string
required

Token symbol (currently always USDC).

amount
string
required

Echoes request amount.

destination
string
required

Echoes request destination.

protocolFee
string
required

Protocol fee in USDC. Charged on top of the amount.

gasEstimate
string
required

Gas estimate in USDC, derived from current gasPrice × estimated gas.