HTTP Methods
GetBalance
getBalance RPC Method
Returns the lamport balance of the account of provided Pubkey.
Parameters
string
required
Pubkey of account to query, as base-58 encoded string
object
optional
Configuration object containing the following fields:
commitment string
optional
The level of commitment desired when querying state
minContextSlot number
optional
The minimum slot that the request can be evaluated at
Code Sample
Response
Result
The result will be an RpcResponse JSON object with value
field equal to:
- Number of lamports in the account, as a u64 integer