getBlockProduction - Solana
getBlockProduction. Retrieves block production information for the current epoch or a specified slot range
getBlockProduction - solana [Value: 13CU]
Retrieves block production information for the current epoch or a specified slot range
Use cases
- Track validator block production rates for performance analysis
- Monitor Solana network health by checking block production
- Ensure validators consistently produce blocks
Constraints
- Requires connection to an active Solana node
- Network delays might affect timely data retrieval
- Frequent requests may trigger rate limiting mechanisms
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request POST \
--url https://solana.drpc.org \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "getBlockProduction"
}
'
Response
200
{
"id": 0,
"jsonrpc": "string",
"result": {
"byIdentity": {},
"range": {
"firstSlot": 0,
"lastSlot": 0
}
}
}
Request params
idinteger
jsonrpcstring
methodstring
array of objects
rangestring
Specifies the slot range to query block production for
array of objects
firstSlotinteger
The starting slot of the range.
lastSlotinteger
The ending slot of the range
commitmentstring
The level of commitment required for the query
- finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
- confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
- processed - The node will query its most recent block. Note that the block may not be complete
Response
200
Contains block production informationResponse params
object
idinteger
jsonrpcstring
resultstring
object
byIdentityobject
A dictionary of validator identities
rangestring
Specifies the slot range to query block production for
object
firstSlotinteger
The starting slot of the range.
lastSlotinteger
The ending slot of the range