curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getBalance' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getBalance",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"balance": "1000000000",
"unlocked": "1000000000",
"lockedStakeable": "1000000000",
"lockedNotStakeable": "1000000000",
"balances": {},
"unlockeds": {},
"lockedStakeables": {},
"lockedNotStakeables": {},
"utxoIDs": [
{}
]
},
"id": 1
}GetBalance gets the balance of an address
curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getBalance' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getBalance",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"balance": "1000000000",
"unlocked": "1000000000",
"lockedStakeable": "1000000000",
"lockedNotStakeable": "1000000000",
"balances": {},
"unlockeds": {},
"lockedStakeables": {},
"lockedNotStakeables": {},
"utxoIDs": [
{}
]
},
"id": 1
}JSON-RPC request
Was this page helpful?