ā” Powered by Solana Ridge DBGet token balances for multiple wallets in a single request with getTokenAccountsByOwners. Powered by Ridge DB, our custom-built client designed for high-performance token account queries. Instead of making hundreds of individual requests, query up to 250 wallets at once for any token mint.What makes it different:Query up to 250 wallet addresses in one request, drastically reducing API calls and latency. Automatically returns all token accounts if a wallet has multiple accounts for the same mint. Wallets without a token account return a clean zero balance response instead of errors. Each account includes the slot when the balance was last updated, perfect for tracking changes and cache invalidation.
jsonrpc
enum<string>
default:2.0
required
The JSON-RPC protocol version.
A unique identifier for the request.
method
enum<string>
default:getTokenAccountsByOwners
required
The name of the RPC method to invoke.
Available options:
getTokenAccountsByOwners
Example:"getTokenAccountsByOwners"
params
(string[] | string)[]
required
Parameters for the batch token balance query.
Successfully retrieved token account balances for all requested owners.
The JSON-RPC protocol version.
Identifier matching the request.
Token account balances with context information.