getTokenAccountBalance
Returns the token balance of an SPL Token account.
Path Parameters
stringrequireddefaults to
docs-demoFor higher throughput, create your own API key
Request
stringrequired
The Pubkey of the token account to query.
objectoptional
Optional configuration object containing additional settings.
Responses
200
The balance of the SPL Token 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. `lastUpdateBeforeSlot` and `firstUpdateAfterSlot` (available on `getAccountInfo`) are not supported on this method; only `slot`. Also returned for a malformed Pubkey (or a Pubkey that is not an SPL Token account) or configuration value.
Was this page helpful?