latestOpenAPI 3.1.02026-08-1051108155.9 KB

6e6f8dad92bf

Subaccount

Returns subaccount balances for given subaccount

get/v1/subaccount/balance

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

orderBy'tokenName' | 'updatedAt' | 'amount'
Example:tokenName

Order by field

Response

hasNextboolean required

Whether there are more objects to paginate through

nextCursorstring

Pointer to the next page in pagination dataset

Example response

{
  "data": [
    {
      "amount": "1.5",
      "available": "0.1337",
      "subaccountId": "9036443a-441a-4a66-87f2-bd5c44cdca7a",
      "tokenAddress": "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3",
      "tokenId": "9036443a-441a-4a66-87f2-bd5c44cdca7a",
      "tokenName": "ETH",
      "totalUsed": "1.3663",
      "updatedAt": 1712019600000
    }
  ],
  "hasNext": true
}