Documentation Index Fetch the complete documentation index at: https://docs.orbitflare.com/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
Configuration object containing the following optional fields: The level of commitment to use:
processed: Latest block (unconfirmed)
confirmed: Confirmed by supermajority
finalized: Finalized by supermajority
Slot range to return block production for:
firstSlot: number - First slot to return block production information for (inclusive)
lastSlot: number - Last slot to return block production information for (inclusive)
Only return results for this validator identity (base-58 encoded)
Response
The slot the request was processed at
Dictionary of validator identities, where each contains:
leader_slots: number - Slots assigned as leader
blocks_produced: number - Blocks produced in this epoch
First slot of the block production information (inclusive)
Last slot of block production information (inclusive)
Code Examples
Basic Request
curl https://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY -X POST -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockProduction"
}'
Request with Range and Identity
curl https://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY -X POST -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockProduction",
"params": [
{
"range": {
"firstSlot": 100000000,
"lastSlot": 100000100
},
"identity": "GH7ome3EiwEr17v3Fn6XY4RjS1YERxYzwXSW8kZ8kBYq"
}
]
}'
Using web3.js
import { Connection } from '@solana/web3.js' ;
const connection = new Connection ( 'https://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY' );
const blockProduction = await connection . getBlockProduction ();
console . log ( 'Block production:' , blockProduction );
// Get production for specific range and validator
const config = {
range: {
firstSlot: 100000000 ,
lastSlot: 100000100
},
identity: 'GH7ome3EiwEr17v3Fn6XY4RjS1YERxYzwXSW8kZ8kBYq'
};
const specificProduction = await connection . getBlockProduction ( config );
Notes
Without parameters, returns production for all validators in the current epoch
The range parameter can span multiple epochs
Block production statistics are used to track validator performance
Results include both assigned leader slots and actual blocks produced
Best Practices
Use range to limit data when querying historical information
Use identity to track specific validator performance
Compare leader_slots to blocks_produced to evaluate validator reliability
Cache results when appropriate to reduce RPC load
Common Errors
Code Message Solution -32602 Invalid param: WrongSize Verify validator identity is valid -32602 Invalid param: not base58 encoded string Ensure validator identity is base58 encoded -32602 Invalid param: slot range too large Reduce the slot range size -32007 Block production not available Node may be bootstrapping or range is too old