POST
Withdraw

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.

dex
integer
required
Required range: 0 <= x <= 4294967295
nonce
string
required

Decimal unsigned 64-bit integer.

deadline
integer
required

Unix seconds, in the future and at most 3660 s ahead.

signature
string
required

A 65-byte signature r ‖ s ‖ v, v 0, 1, 27 or 28, s low (EIP-2).

Pattern: ^0x[0-9a-fA-F]{130}$
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 order as GET /v1/escrow shows it.

An order of a linked address in an escrow, with its unlocked funds.

venue
string
required

A venue id from GET /v1/venues.

order_id
string
required

Zero is the owner's available balance; other ids are funded orders.

Pattern: ^0x[0-9a-fA-F]{64}$
owner
string
required

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

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

Unlocked; what a close releases.

Pattern: ^[0-9]{1,78}$
operator
string
required

Operator named at funding.

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

Funded with this deployment's operator; POST /v1/closes can close it.

in_balances
boolean
required

Your own order operated by this deployment, already in /v1/balances holdings.orders. Order zero is escrow_balance there; other orders add to it.

closing
boolean
required

A withdrawal is pending.