Skip to main content

listAddressAssetBalances Query

Lists all asset balances associated with a given address.

Updated on
Oct 16, 2024

listAddressAssetBalances Query

Parameters

filter
object
REQUIRED
The filter object used to query balances
owner
string
REQUIRED
The owner whose balance is to be fetched

Returns

data
object
The outer object that holds the query result
balance
object
An object that holds the queried balance information for the requested owner
nodes
array
An array containing individual balance records, each representing a different asset
amount
string
The balance amount of the specific asset
assetId
string
The unique identifier (address or ID) of the asset type associated with the balance
Request
1
curl --location 'https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql' \
2
--header 'Accept: application/json' \
3
--header 'Content-Type: application/json' \
4
--data '{
5
"query": "query Balances($filter: BalanceFilterInput) { balances(filter: $filter, first: 5) { nodes { amount assetId } } }",
6
"variables": {
7
"filter": {
8
"owner": "0xce9f8d9367fc4671c0ececce7ab603f6f75d1e66082a82ad12ecdc219b308820"
9
}
10
}
11
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free