Overview
The getBalance method returns the balance of the account of provided public key.
FluxRPC Performance Advantage
FluxRPC delivers getBalance responses up to 3x faster than other RPC providers, with average response times of just 30ms compared to 85-110ms from competitors.
Request
Example Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBalance",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
{
"commitment": "confirmed"
}
]
}
Response
Example Response
{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 1114
},
"value": 1000000000
},
"id": 1
}