Skip to main content
POST
getTokenAccountsByOwner
Need to track only new tokens? Use changedSince to fetch accounts modified after a specific slot, perfect for incremental portfolio updates. Want to filter out dust? The excludeZero parameter automatically hides empty token accounts, keeping your results clean and reducing bandwidth.
High Load ConsiderationsThis endpoint streams all token accounts directly to your client. While this works great for most wallets, it can return errors during high load or when querying owners with millions of token accounts, such as protocol-owned accounts.Need better reliability? Use getTokenAccountsByOwnerV2 instead. The V2 method includes pagination support, making it more efficient and reliable for large wallets and high-traffic scenarios.
Configuración y errores: inicio rápido RPC. Facturación: créditos y límites.

Autorizaciones

api_key
string
query
requerido

Cuerpo

application/json
jsonrpc
enum<string>
requerido

The JSON-RPC protocol version.

Opciones disponibles:
2.0
Ejemplo:

"2.0"

id
string
requerido

A unique identifier for the request.

Ejemplo:

"1"

method
enum<string>
predeterminado:getTokenAccountsByOwner
requerido

The name of the RPC method to invoke.

Opciones disponibles:
getTokenAccountsByOwner
Ejemplo:

"getTokenAccountsByOwner"

params
string · object · object[]
requerido

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.

Ejemplo:

"A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd"

Respuesta

Successfully retrieved token accounts by owner.

jsonrpc
enum<string>

The JSON-RPC protocol version.

Opciones disponibles:
2.0
Ejemplo:

"2.0"

id
string

Identifier matching the request.

Ejemplo:

"1"

result
object

Context and account details.