Solana RPC
getTokenAccountsByOwner
Returns all SPL Token accounts by token owner.
POST
getTokenAccountsByOwner
New Feature:
getTokenAccountsByOwner now supports the changedSinceSlot parameter for incremental updates. When specified, the method returns only token accounts that have been modified at or after the given slot number. This is ideal for tracking token balance changes and portfolio updates.Request Parameters
string
required
Solana wallet address (pubkey) of the account owner to query token holdings for, as a base-58 encoded string.
string
Specific Solana token mint address to retrieve only accounts for a particular token or NFT.
string
Specific Solana token program ID (typically SPL Token program) that created the token accounts.
string
The commitment level for the request.
confirmedfinalizedprocessed
number
The minimum slot that the request can be evaluated at.
object
Request a slice of the account’s data.
number
Number of bytes to return.
number
Byte offset from which to start reading.
string
Encoding format for Account data.
base58base64base64+zstdjsonParsed
number
Only return accounts that were modified at or after this slot number. Useful for incremental updates.
Authorizations
Body
application/json
The JSON-RPC protocol version.
Available options:
2.0 Example:
"2.0"
A unique identifier for the request.
Example:
"1"
The name of the RPC method to invoke.
Available options:
getTokenAccountsByOwner Example:
"getTokenAccountsByOwner"
Parameters for querying token accounts owned by a specific public key.
Solana wallet address (pubkey) of the account owner to query token holdings for, as a base-58 encoded string.
Example:
"A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd"