avm.getBalance RPC Method
Parameters
address
String
REQUIRED
The owner of the asset
assetID
String
REQUIRED
The id of the asset for which the balance is requested.
Returns
balance
int
The balance given the address and assetID.
utxoIDs
array
An array of UTXO IDs (if applicable).
Request
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/bc/X \2--header 'Content-Type: application/json' \3--data-raw '{4"jsonrpc":"2.0",5"id" : 1,6"method" :"avm.getBalance",7"params" :{8"address":"X-avax1pue5luvh6klhjkq8zk5zltxk84asvcnznsauxa",9"assetID": "2pYGetDWyKdHxpFxh2LHeoLNCH6H5vxxCxHQtFnnFaYxLsqtHC"10}11}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free