POST
Prepare a withdrawal or a send

Authorizations

Authorization
string
header
required

From POST /v1/auth/verify; seven days by default, revocable. Required for financial operations. 60 requests/s, burst 120, shared by the user's sessions.

Body

application/json
venue
string
required

A venue id from GET /v1/venues.

amount
string
required

Decimal base units of the venue's token (decimals in GET /v1/venues), below 2^256: with 6 decimals, "1000000" is 1 token.

Pattern: ^[0-9]{1,78}$
to
enum<string>
required

Polymarket: wallet (the linked venue wallet), signer, or escrow (the signer's deposit address, swept into the available balance). Hyperliquid and Aster: signer. All three: account, a send to recipient.

Available options:
wallet,
signer,
escrow,
account
recipient
string

With to: account only: the other account. On Polymarket, its Perps owner (signer) address, not its wallet.

Pattern: ^0x[0-9a-fA-F]{40}$
dex
enum<string>

Hyperliquid, a standard account: its trade.xyz balance pays the withdrawal or send instead of its perps. A unified account's one balance includes it: VALIDATION_ERROR.

Available options:
xyz
chain_id
integer

An Aster withdrawal (to: signer) only: the chain it arrives on, a chain_id of GET /v1/withdrawals/chains (56 BSC, 42161 Arbitrum, 1 Ethereum), each with its own limit and fee at Aster; BSC when absent. Its destination Chain names it; it is signed at BSC's chain id whatever the chain.

Response

The typed data to sign with eth_signTypedData_v4.

typed_data
object
required

EIP-712 typed data for eth_signTypedData_v4. Keep each integer as prepared, JSON number or decimal string.