Links
Comment on page

avm.getAllBalances

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

Signature​​

avm.getAllBalances({address:string}) -> {
balances: []{
asset: string,
balance: int
}
}

Example

Request
curl -X POST --data '{
"jsonrpc":"2.0",
"id" : 1,
"method" :"avm.getAllBalances",
"params" :{
"address":"X-avax1qsnptt6yxnwmh8up7xn5u3sajz37lmyv8u3dmu"
}
}' -H 'content-type:application/json;' https://ava-mainnet.blastapi.io/<project-id>/ext/bc/X
Result
{
"jsonrpc": "2.0",
"result": {
"balances": [{
"asset": "AVAX",
"balance": "763628271252659"
}]
},
"id": 1
}