v2

latestOpenAPI 3.0.3Apache 2.02026-07-3149289180.2 KB

Withdraw

Submit a signed withdrawal request. Requires EOA signature, see EOA signing.

The amount field is the raw token amount including decimals (e.g. "100000000" for 100 USDC). This must match the uint256 amount value used in the EIP-712 Withdraw signature.

The ts field is Unix seconds (not milliseconds) because the on-chain contract validates it against block.timestamp. It must also match the uint64 ts in the signed EIP-712 struct.

post/v1/account/withdraw

Request body

sigstring required

Signature in hex format

saltinteger required

Salt

tsinteger required

Request timestamp. Unix milliseconds for most operations; Unix seconds for withdrawals (must match the on-chain EIP-712 struct verified against block.timestamp).

Example request

{
  "op": {
    "args": {
      "account": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
      "token": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
      "amount": "100000000",
      "to": "0x1234567890abcdef1234567890abcdef12345678"
    }
  },
  "sig": "0x1234567890...",
  "salt": 1234567890,
  "ts": 1767225600000
}

Response

The accepted withdrawal, carrying its withdraw_id.

status'ok' required
withdraw_idinteger required

Withdraw ID