Skip to main content

platform.getBalance RPC Method

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

Updated on
Dec 4, 2024

platform.getBalance RPC Method

Parameters

addresses
array
An array of address strings

Returns

balance
string
The total token balance.
unlocked
string
The unlocked token balance.
lockedStakeable
string
The locked stakeable token balance.
lockedNotStakeable
string
The locked and not stakeable token balance.
balances
object
A mapping of addresses to their respective balances in atomic units
unlockeds
object
A mapping of addresses to their respective unlocked balances
lockedStakeables
object
A mapping of an address to its locked stakeable balance
lockedNotStakeables
object
A mapping of an address to its not locked stakeable balance
utxoIDs
array
A array of UTXO (Unspent Transaction Output) IDs, with each entry containing a transaction ID and output index
txID
string
The transaction id
outputIndex
integer
The output index
Request
1
curl --location --request POST https://docs-demo.flare-mainnet.quiknode.pro/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
"addresses":["P-flare1ljm5j7ku39shkern8peyg223axa9m0z30cl63c"]
9
}
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free