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

Parameters

  • <object> - (optional) Config object:
    • commitment: <object> - (optional) Configures the commitment level of the blocks queried Accepts one of the following strings: ["finalized", "confirmed", "processed"] For more info, refer to this doc.
    • filter: <string> - (optional) Filter results by account type; currently supported: "circulating" or "nonCirculating"

Results

  • <array> - Array of 20 accounts
    • address: <base-58 encoded string>, address of the account
    • lamports: <u64>, number of lamports in the account

Example

Request

cURL
1
curl --location --request POST 'https://solana-mainnet.g.alchemy.com/v2/demo' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc": "2.0",
5
"id": 1,
6
"method": "getLargestAccounts"
7
}'
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"context": {
5
"slot": 54
6
},
7
"value": [
8
{
9
"lamports": 999974,
10
"address": "99P8ZgtJYe1buSK8JXkvpLh8xPsCFuLYhz9hQFNw93WJ"
11
},
12
{
13
"lamports": 42,
14
"address": "uPwWLo16MVehpyWqsLkK3Ka8nLowWvAHbBChqv2FZeL"
15
}
16
.............
17
{
18
"lamports": 42,
19
"address": "aYJCgU7REfu3XF8b3QhkqgqQvLizx8zxuLBHA25PzDS"
20
},
21
{
22
"lamports": 42,
23
"address": "CTvHVtQ4gd4gUcw3bdVgZJJqApXE9nCbbbP4VTS5wE1D"
24
},
25
{
26
"lamports": 20,
27
"address": "4fq3xJ6kfrh9RkJQsmVd5gNMvJbuSHfErywvEjNQDPxu"
28
}
29
]
30
},
31
"id": 1
32
}
Copied!