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
minContextSlot number
optional
The minimum slot that the request can be evaluated at
Result
RpcResponse<u64>
- RpcResponse JSON object with value
field set to the
balance