cURL
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
JSON-RPC request
"2.0"
"platform.getBalance"
Method parameters
Show child attributes
1
Successful response
Method result
Was this page helpful?