getBalance
Returns the lamport balance of the account of the provided Pubkey.
Path Parameters
stringrequireddefaults to
docs-demoFor higher throughput, create your own API key
Request
stringrequired
Pubkey of the account to query.
objectoptional
Optional configuration object containing additional settings.
Responses
200
Returns the balance in lamports of the account queried.
The balance in lamports of the account.
Errors
-32020Out of coverage. The requested `slot` is outside the [Account Archive](/docs/solana/account-archive)'s coverage window: below the earliest indexed slot or above the latest finalized slot.
-32602Invalid params. `slot` and `minContextSlot` are mutually exclusive. `lastUpdateBeforeSlot` and `firstUpdateAfterSlot` (available on `getAccountInfo`) are not supported on this method; only `slot`. Also returned for a malformed Pubkey or configuration value.
Was this page helpful?