getBlockProduction
Returns recent block production information from the current or previous epoch.
https://api.1inch.com/web3/501
Supported on: Solana
Request
Request
object jsonrpc
* string (Enum)JSON-RPC version
2.0
method
* string The method to call
params
array Method parameters
items
any id
* number Request ID
JavaScript
Copy
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: 'getBlockProduction',
params: [],
id: 1,
}),
});
const data = await response.json();
console.log(data);
Response
Block Production Response
Block Production Response
object context
* object slot
* integer The slot this response corresponds to
apiVersion
string The current solana versions running on the node
additionalProperties
none value
* object byIdentity
* object Map of validator identities to their block production stats
additionalProperties
array Array of [blocks_produced, blocks_eligible] for this validator
items
integer range
* object firstSlot
* integer Starting slot of the block production range
lastSlot
* integer Ending slot of the block production range
additionalProperties
none additionalProperties
none additionalProperties
none JSON
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"context": {
"slot": 9887
},
"value": {
"byIdentity": {
"85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr": [9888, 9886]
},
"range": {
"firstSlot": 0,
"lastSlot": 9887
}
}
}