Source
get_block_productionParameters
Configuration object
Show propertiesHide properties
Show propertiesHide properties
Values:
processed, confirmed, finalizedSolana RPC uses the following commitment levels:| Value | Description |
|---|---|
processed | Return data from the highest slot this node has processed. This is the newest view, but the block can still be skipped. |
confirmed | Return data from the same slot as finalized. Kept for compatibility and planned for removal in a later release. |
finalized | Return data from the highest slot with a finalization certificate, from votes by 80% of stake in one round or 60% of stake in each of two rounds. This is the strongest commitment level. |
Return only entries for this validator identity, as a base-58 encoded string.
Example
{ "identity": "85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr" }
Slot range to return block production for. If parameter not provided, defaults
to current epoch.
| Field | Type | Description |
|---|---|---|
firstSlot | u64 | First slot for which to return block-production information, inclusive. |
lastSlot | u64 | Last slot for which to return block-production information, inclusive. If omitted, defaults to the current slot at the selected commitment level. |
Example
{ "firstSlot": 100, "lastSlot": 200 }
Result
RpcResponse object containing:
Show propertiesHide properties
Show propertiesHide properties
Slot and API version the node used to answer this request.
| Field | Type | Description |
|---|---|---|
slot | u64 | Slot at which the node evaluated this request. |
apiVersion | string | RPC API version reported by the node. This field may be omitted by older nodes. |
Block production object containing:
| Field | Type | Description |
|---|---|---|
byIdentity | object | Dictionary keyed by validator identity pubkey. Each value is a two-element array containing the number of leader slots assigned and the number of blocks actually produced. |
range | object | Slot range covered by the returned block-production data. |
byIdentity entries| Field | Type | Description |
|---|---|---|
<validatorIdentity> | [usize, usize] | Map entry keyed by a validator identity pubkey, as a base-58 encoded string. |
byIdentity tuple indexes| Index | Type | Description |
|---|---|---|
0 | usize | Number of leader slots assigned to that validator in the requested range. |
1 | usize | Number of blocks that validator actually produced in that range. |
range fields| Field | Type | Description |
|---|---|---|
firstSlot | u64 | First slot in the returned block-production range, inclusive. |
lastSlot | u64 | Last slot in the returned block-production range, inclusive. |