getTokenAccountsByOwner
JSON-RPC — Tokens
getTokenAccountsByOwner
Returns all token accounts owned by wallet, optionally filtered by mint or programId. The gateway fans out across endpoints and unions the results to avoid stale-index partial responses.
POST
getTokenAccountsByOwner
Body
application/json
Available options:
2.0 Example:
"2.0"
Available options:
getTokenAccountsByOwner Example:
"getTokenAccountsByOwner"
[wallet, filter, config?] — filter is {mint} or {programId}
Example:
[
"4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T",
{
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{ "encoding": "jsonParsed" }
]Example:
1
