getBalance RPC Method
Returns the lamport balance of the account of provided Pubkey.Parameters
string
requiredPubkey of account to query, as base-58 encoded string
object
optionalConfiguration object containing the following fields:commitment
string
optionalThe level of commitment desired when querying stateminContextSlot
number
optionalThe minimum slot that the request can be evaluated at
Result
The result will be an RpcResponse JSON object withvalue
field equal to:
- Number of lamports in the account, as a u64 integer