getLargestAccounts RPC Method
Returns the 20 largest accounts, by lamport balance (results may be cached up to two hours)
params
objectoptional
Configuration object containing the following fields:
result
array
The result will be an RpcResponse JSON object with value
equal to an array of
objects containing:
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getLargestAccounts",> "params": []> }> '
Response
{"jsonrpc": "2.0","result": {"context": { "slot": 54 },"value": [{"address": "99P8ZgtJYe1buSK8JXkvpLh8xPsCFuLYhz9hQFNw93WJ","lamports": 999974},{"address": "uPwWLo16MVehpyWqsLkK3Ka8nLowWvAHbBChqv2FZeL","lamports": 42}]},"id": 1}
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getLargestAccounts",> "params": []> }> '
params
objectoptional
Configuration object containing the following fields:
result
Response
{"jsonrpc": "2.0","result": {"context": { "slot": 54 },"value": [{"address": "99P8ZgtJYe1buSK8JXkvpLh8xPsCFuLYhz9hQFNw93WJ","lamports": 999974},{"address": "uPwWLo16MVehpyWqsLkK3Ka8nLowWvAHbBChqv2FZeL","lamports": 42}]},"id": 1}
array
The result will be an RpcResponse JSON object with value
equal to an array of
objects containing:
Is this page helpful?