getSlotLeaders

Returns the slot leaders for a given slot range.

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: 'getSlotLeaders',
    params: [],
    id: 1,
  }),
});

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

Response

Slot Leaders Response

Slot Leaders Response
array
items
string
JSON
1
2
3
4
5
6
7
[
  "ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
  "ChorusmmK7i1AxXeiTtQgQZhQNiXYU84ULeaYF1EH15n",
  "Awes4Tr6TX8JDzEhCZY2QVNimT6iD1zWHzf1vNyGvpLM",
  "DWvDTSh3qfn88UoQTEKRV2JnLt5jtJAVoiCo3ivtMwXP"
]

Did you find what you need?