v1

latestOpenAPI 3.0.02026-07-2442242189.1 KB
Balances

QueryWalletAddressBalances

Retrieve a list of all asset balances in a wallet address. Can be used also to retrieve assets across all wallet adresses of a wallet as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of wallet address ID in the parent.

post/v2/vaults/{vault_id}/wallets/{wallet_id}/addresses/{address_id}:queryBalances

Path parameters

vault_idstring required
wallet_idstring required
address_idstring required

Request body

filterstring

Filter results using EBNF syntax.

Supported functions:

  • asset(asset_name) (example: asset("assets/native.ethereum-mainnet"))
  • network(network_name) (example: network("networks/ethereum-mainnet"))
  • wallet_external() (example: wallet_external())
pageSizeinteger

The maximum number of items to return. The service may return fewer than this value.

pageTokenstring

A page token, received from the previous list call as nextPageToken.

includeReferencedResourcesboolean

Include referenced resources in the response.

Response

A successful response.

nextPageTokenstring

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

totalSizeinteger

Total number of items in the response, regardless of pagination.

referencedResourcesobject

A mapping of the referenced resources in the message. The key is the resource name and the value is the corresponding resource.

This field is only populated if the includeReferencedResources field is set to true.

Example response

{
  "walletAddressBalances": [
    {
      "asset": "assets/native.ethereum-mainnet",
      "walletAddress": "vaults/1b25635a5b3f/wallets/203809def2/addresses/519c67ddae33",
      "value": "1.3",
      "rawValue": "13000000",
      "frozenValue": "0.3"
    }
  ]
}