Skip to main content

getLargestAccounts RPC Method

Returns the 20 largest accounts, by lamport balance (results may be cached up to two hours)

params

object optional Configuration object containing the following fields:

commitment

The commitment describes how finalized a block is at that point in time. See Configuring State Commitment.

epoch

An epoch for which the reward occurs. If omitted, the previous epoch will be used

minContextSlot
`value` : `circulating` `nonCirculating`

Default :

Filter results by account type

result

array The result will be an RpcResponse JSON object with value equal to an array of objects containing:

address

Base-58 encoded address of the account

lamports

Number of lamports in the account

cURL

curl https://us-seattle.openverse.network/api -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
}