POST
Prepare a direct deposit or GMX 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
client_operation_id
string
required
Required string length: 1 - 64
venue
enum<string>
required
Available options:
hyperliquid,
polymarket,
gmx
kind
enum<string>
required
Available options:
deposit,
withdrawal
owner
string
required

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

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

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

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

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

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

amount; for native USDC, the least pUSD deposited.

Pattern: ^[0-9]{1,78}$
move_id
string<uuid>

The move this GMX withdrawal belongs to (moves): a withdrawal to the payer's wallet from the move's GMX origin.

Response

Existing operation.

id
string<uuid>
required
client_operation_id
string
required
venue
string
required
kind
string
required
chain_id
integer
required
escrow
string
required

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

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

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

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

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

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

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

Pattern: ^0x[0-9a-fA-F]{40}$
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}$
min_out
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}$
nonce
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}$
deadline
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}$
state
enum<string>
required
Available options:
prepared,
pending,
confirmed,
failed,
expired
attempts
string[]
required
Pattern: ^0x[0-9a-fA-F]{64}$
tx_hash
string | null
required
Pattern: ^0x[0-9a-fA-F]{64}$
received
string | null
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}$
move_id
string<uuid> | null