getAddressAssetBalance Query
Parameters
address
string
REQUIRED
The unique identifier representing an address
assetId
string
REQUIRED
The unique identifier of an asset
Returns
data
object
The outer object that holds the query result
balance
object
The object that contains the balance information
owner
string
The blockchain address whose balance is being queried
amount
string
The balance amount for the specified asset
assetId
string
The unique identifier of the asset
Request
1curl --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 Balance($address: Address, $assetId: AssetId) { balance(owner: $address, assetId: $assetId) { owner amount assetId } }",6"variables": {7"address": "0xce9f8d9367fc4671c0ececce7ab603f6f75d1e66082a82ad12ecdc219b308820",8"assetId": "0x2a0d0ed9d2217ec7f32dcd9a1902ce2a66d68437aeff84e3a3cc8bebee0d2eea"9}10}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free