Skip to main content

platform.getBalance RPC Method

Get the balance of an asset controlled by a given address.

Updated on
Oct 3, 2023

platform.getBalance RPC Method

Parameters

address
String
The address to get the balance of.

Returns

balance
String
The total balance, in nAVAX.
unlocked
String
The unlocked balance, in nAVAX.
lockedStakeable
String
The locked stakeable balance, in nAVAX.
lockedNotStakeable
String
The locked and not stakeable balance, in nAVAX.
utxoIDs
[Object]
The IDs of theUTXOs that reference address.
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/bc/P \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc":"2.0",
5
"id" :1,
6
"method" :"platform.getBalance",
7
"params" :{
8
"address":"P-avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"
9
}
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free