Returns the lamport balance for a single account address at the requested commitment.
Source
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBalance",> "params": [> "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",> {> "commitment": "finalized"> }> ]> }> '
params
stringrequired
Pubkey of account to query, as base-58 encoded string.
objectoptional
Configuration object.
result
Response
{"jsonrpc": "2.0","result": {"context": { "apiVersion": "3.1.8", "slot": 1 },"value": 0},"id": 1}
object
RpcResponse object containing:
Is this page helpful?