Returns the lamport balance of the account of provided Pubkey
Last updated 4 months ago
Was this helpful?
The JSON-RPC protocol version.
2.0
A unique identifier for the request.
1
The name of the RPC method to invoke.
getBalance
Parameters for the request.
POST / HTTP/1.1 Host: mainnet.helius-rpc.com Content-Type: application/json Accept: */* Content-Length: 106 { "jsonrpc": "2.0", "id": "1", "method": "getBalance", "params": [ "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri" ] }
Successfully retrieved account balance.
{ "jsonrpc": "2.0", "id": "text", "result": { "context": { "slot": 1 }, "value": 0 } }