HTTP Methods
GetLargestAccounts
getLargestAccounts RPC Method
Returns the 20 largest accounts, by lamport balance (results may be cached up to two hours).
Parameters
object
optional
Configuration object containing the following fields:
commitment string
optional
The level of commitment desired when querying state
filter string
optional
Filter results by account type
Allowed Filter Values:
circulatingNonCirculating
Code Sample
Response
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