Learn getLargestAccounts use cases, code examples, request parameters, response structure, and tips.
getLargestAccounts
RPC method returns a list of the top 20 accounts on the Solana network, ranked by their lamport balance. This method can be useful for network analysis, understanding wealth distribution, or identifying significant holders of SOL.
Note that the results from this method may be cached by the RPC node for up to two hours.
commitment
(string, optional): Specifies the commitment level to use when querying the ledger. If not provided, the default commitment of the node is used.filter
(string, optional): Filters the results by account type. Accepted values are:
circulating
: Returns the largest accounts that are part of the circulating supply.nonCirculating
: Returns the largest accounts that are not part of the circulating supply (e.g., locked accounts, foundation accounts).
If omitted, all accounts are considered without this specific filter.result
field of the JSON-RPC response will be an RpcResponse
object. The value
field within this object is an array of up to 20 account objects, each containing:
address
(string): The base-58 encoded public key of the account.lamports
(u64): The balance of the account in lamports.context
object with the slot
at which the information was retrieved.
circulating
and nonCirculating
filters depend on the RPC node’s definition and data sources for these classifications.getLargestAccounts
RPC method for querying the largest SOL holders on the Solana network.