latestOpenAPI 3.1.02026-08-1051108155.9 KB

6e6f8dad92bf

Token

Initiates a withdraw for a specific token in subaccount

post/v1/token/{id}/withdraw

Path parameters

idstring required

Request body

signaturestring hex required

Hex-encoded EIP-712 signature authorizing this request

Example request

{
  "data": {
    "account": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "amount": "1337.42",
    "lzDestinationAddress": "0x000000000000000000000000d8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "nonce": "2687929537462333",
    "signedAt": 1712019600,
    "subaccount": "0x7072696d61727900000000000000000000000000000000000000000000000000",
    "token": "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3"
  }
}

Response

amountstring required

Amount of asset transferred expressed as a decimal

createdAtinteger required

Withdraw creation timestamp (ms since Unix Epoch)

finalizedBlockNumberstring

Block number the withdraw was completed on

idstring uuid required

Id representing the withdraw

initiatedBlockNumberstring

Block number the withdraw was initiated on

lzDestinationAddressstring hex

LayerZero destination address (leading 0x bytes32 encoded) for the transfer (if withdraw)

lzDestinationEidinteger

LayerZero destination endpoint ID for the transfer (if withdraw)

status'SUBMITTED' | 'PENDING' | 'COMPLETED' | 'REJECTED' required

Current status of the withdraw

subaccountstring hex required

Bytes32 encoded subaccount name (0x prefix, zero padded)

tokenstring hex required

Address of asset to withdraw (non-checksummed)

withdrawDigeststring hex required

Bytes32 hash of the withdraw data (with 0x prefix)

Example response

{
  "amount": "1.5",
  "createdAt": 1712019600000,
  "finalizedBlockNumber": "123062992",
  "id": "9036443a-441a-4a66-87f2-bd5c44cdca7a",
  "initiatedBlockNumber": "123062000",
  "lzDestinationEid": 30391,
  "subaccount": "0x7072696d61727900000000000000000000000000000000000000000000000000",
  "token": "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3"
}