Skip to main content

getBlockProduction RPC Method

Returns recent block production information from the current or previous epoch.

params​

object optional Configuration object.

commitment

The commitment describes how finalized a block is at that point in time. See Configuring State Commitment.

identity
Only return results for this validator identity (base-58 encoded).
range
Slot range to return block production for. If parameter not provided, defaults to current epoch.
  • firstSlot: <u64> - first slot to return block production information for (inclusive)
  • (optional) lastSlot: <u64> - last slot to return block production information for (inclusive). If parameter not provided, defaults to the highest slot

result​

object The result will be an RpcResponse JSON object with value equal to:

byIdentity
A dictionary of validator identities, as base-58 encoded strings. Value is a two element array containing the number of leader slots and the number of blocks produced.
range
Block production slot range
  • firstSlot: <u64> - first slot of the block production information (inclusive)
  • (optional) lastSlot: <u64> - last slot of block production information (inclusive)

cURL

curl https://api.mainnet.openverse.network/ -s -X \
POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockProduction"
}
'

Response

{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 9887
},
"value": {
"byIdentity": {
"27BEtJg3VQnMsmSAytyhdTX5FxjTELC6pYPKcp61cG6A": [816, 816]
},
"range": {
"firstSlot": 92108256,
"lastSlot": 92363568
}
}
},
"id": 1
}