getLargestAccounts

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

https://api.1inch.com/web3/501
Supported on:
Solana

Request

Request
object
jsonrpc
* string (Enum)
2.0
method
* string
params
array
items
any
id
* number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/501', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${API_KEY}`,
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'getLargestAccounts',
    params: [],
    id: 1,
  }),
});

const data = await response.json();
console.log(data);

Response

Largest Accounts Response

Largest Accounts Response
object
context
* object
slot
* integer
apiVersion
string
additionalProperties
none
value
* array
items
object
address
* string
lamports
* integer
additionalProperties
none
additionalProperties
none
JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  "context": {
    "slot": 54
  },
  "value": [
    {
      "address": "99P8ZgtJYe1buSK8JXkvpLh8xPsCFuLYhz9hQFNw93WJ",
      "lamports": 999974
    },
    {
      "address": "uPwWLo16MVehpyWqsLkK3Ka8nLowWvAHbBChqv2FZeL",
      "lamports": 42
    }
  ]
}

Did you find what you need?