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
}Documentation Index
Fetch the complete documentation index at: https://developers.avacloud.io/llms.txt
Use this file to discover all available pages before exploring further.
JSON-RPC request
Was this page helpful?