Token
Returns a list of transfers for the given subaccount
Changed onget/v1/token/transfer
Request
- Base URLhttps://api.ethereal.trade
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
order'asc' | 'desc'
Direction to paginate through objects
limitinteger
Limit the number of objects to return
cursorstring
Pointer to the current object in pagination dataset
subaccountIdstring uuid required
Id representing the registered subaccount
statusesstring[]
Array of transfer statuses to filter by
typesTransfer Type[]
Array of transfer types to filter by
orderBy'createdAt'
Example:createdAt
Order by field
createdAfterinteger
Filter by transfers created after timestamp exclusive (ms since Unix epoch)
createdBeforeinteger
Filter by transfers created before timestamp inclusive (ms since Unix epoch)
Response
Example response
{
"data": [
{
"amount": "0.42",
"createdAt": 1712019600000,
"fee": "0.42",
"finalizedBlockNumber": "123062992",
"finalizedTransactionHash": "0x42aa378d58b92c639dda64d528a6123f14e59e071c4b56e058d3a54b819e2b79",
"id": "9036443a-441a-4a66-87f2-bd5c44cdca7a",
"initiatedBlockNumber": "123062000",
"initiatedTransactionHash": "0x8ffa427c4079a78a64811e80fe4dbefa8bd8e2f4cc572cda9717297d220d4f8e",
"lzDestinationEid": 40422,
"status": "PENDING",
"subaccountId": "9036443a-441a-4a66-87f2-bd5c44cdca7a",
"tokenAddress": "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3",
"tokenName": "ETH",
"type": "WITHDRAW"
}
],
"hasNext": true
}Changes
- info
added the non-success response with the status
- info