latestOpenAPI 3.1.02026-08-1051108155.9 KB

6e6f8dad92bf

Subaccount

Returns subaccounts for the given account

get/v1/subaccount

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

namestring hex

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

senderstring hex required

Address of the subaccount wallet

orderBy'createdAt' | 'name'
Example:createdAt

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": [
    {
      "account": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
      "createdAt": 1712019600000,
      "createdBlockNumber": "123062737",
      "id": "9036443a-441a-4a66-87f2-bd5c44cdca7a",
      "name": "0x7072696d61727900000000000000000000000000000000000000000000000000",
      "registeredBlockNumber": "123062737"
    }
  ],
  "hasNext": true
}