getBalance

Returns the lamport balance of a Solana account.

Request

This endpoint expects an object.
pubkeystringRequiredformat: "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
Public key of the account to query.
configobjectOptional
Optional commitment configuration.

Response

Lamport balance with response context.
contextobject
Response context for a Solana RPC result.
valueinteger>=0
Amount in lamports.