Skip to main content

getContractAssetBalance Query

Retrieves the balance of a specific asset for a given contract.

Updated on
Oct 16, 2024

Parameters

contract
string
REQUIRED

The contract address for which the balance is to be fetched

asset
string
REQUIRED

The unique identifier of an asset

Returns

data
object

The data object which contains the following fields:

contractBalance
object

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

contract
string

The ID of the contract

amount
string

The balance amount of the asset in the contract

assetId
string

The unique identifier of the asset associated with the contract

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