POST
Prepare a withdrawal

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.

order_id
string
required
Pattern: ^0x[0-9a-fA-F]{64}$
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_margin
boolean
required

False withdraws to the owner wallet.

owner
string

The master: order zero only, to its wallet, without a link. Otherwise the linked owner.

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

Response

The terms for POST /v1/escrow/withdraw and the item to sign.

venue
string
required

A venue id from GET /v1/venues.

order_id
string
required
Pattern: ^0x[0-9a-fA-F]{64}$
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_margin
boolean
required
dex
integer
required

Hyperliquid destination: 0 perps, 4294967295 spot; 0 elsewhere.

nonce
string
required

A random decimal integer.

deadline
integer
required

Unix seconds, one hour ahead.

to_sign
object[]
required
owner
string

Any case accepted; responses are lowercase except inside typed data and signed messages.

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