Skip to main content

listContractAssetBalances Query

Lists all asset balances associated with a specified contract.

Updated on
Oct 16, 2024

Parameters

filter
object
REQUIRED

The filter object used to query balances

contract
string
REQUIRED

The contract address whose asset balances is to be fetched

Returns

data
object

The data object which contains the following fields:

contractBalances
object

The object containing details about the contract's balance for a specific asset

nodes
array

An array of balance records for different assets

amount
string

The balance amount of the specified asset in the contract

assetId
string

The unique identifier of the asset associated with the balance

extensions
object

GraphQL response metadata returned by the Fuel node.

current_consensus_parameters_version
integer

The current consensus parameters version

current_fuel_block_height
integer

The current Fuel block height

current_stf_version
integer

The current STF version

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free