Skip to main content

avm.getAllBalances RPC Method

Get the balances of all assets controlled by a given address.

Updated on
Nov 2, 2023

avm.getAllBalances RPC Method

Parameters

address
String
The address you want to fetch balances for.

Returns

balances
object
asset
string
The symbol of the asset.
balance
integer
The balance of the asset.
Request
1
curl --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.getAllBalances",
7
"params" :{
8
"address":"X-avax16902ur8dhlyxpaa0rva5fx48fhptx6ryh3dv7q"
9
}
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free