cURL
curl --request POST \ --url https://devnet-as.magicblock.app/ \ --header 'Content-Type: application/json' \ --data ' { "method": "getBalance", "jsonrpc": "2.0", "params": [ "5RgeA5P8bRaynJovch3zQURfJxXL3QK2JYg1YamSvyLb" ], "id": 0 } '
{ "jsonrpc": "2.0", "id": 0, "result": { "context": { "apiVersion": "2.2.1", "slot": 85838062 }, "value": { "amount": 5000000, "decimals": 9 } }, "error": null }
Solana JSON-RPC method getBalance.
getBalance
2.0
Method-specific parameters. See Solana RPC docs for exact shape.
1 - 2
Successful response
Method-specific result payload.
Was this page helpful?