getLargestAccounts RPC Method
Returns the 20 largest accounts, by lamport balance (results may be cached up to two hours).Parameters
object
optionalConfiguration object containing the following fields:commitment
string
optionalThe level of commitment desired when querying statefilter
string
optionalFilter results by account typeAllowed Filter Values:
circulatingNonCirculating
Result Details
The result will be an RpcResponse JSON object with:-
value
: An array of objects, each containing:-
address: <string>
- Base-58 encoded address of the account
- Uniquely identifies the account
-
lamports: <u64>
- Number of lamports in the account
- Represents the account’s balance
-
Important Notes
- Returns up to 20 largest accounts
- Results may be cached for up to two hours
- Optional filtering available for account types