getEpochSchedule – Solana
The getEpochSchedule JSON-RPC method retrieves the epoch schedule information from the Solana cluster's genesis configuration.
The getEpochSchedule RPC Solana method provides essential details about the structure of epochs in the Solana network.
It helps developers and validators understand the number of slots per epoch, leader schedule offsets, and how epochs evolve over time.
Supported Networks
This method is accessible through Solana API endpoints:
Mainnet
Devnet
Parameters
This method does not require any parameters.
Request Example
API Endpoints
cURL Example
Response
A successful getEpochSchedule example response provides information about epoch structure and scheduling.
Example Response
Error Handling
Common getEpochSchedule error scenarios:
Network issues: Request fails due to Solana API unavailability.
Invalid response format: Unexpected JSON structure returned.
Example Error Response
Use Cases
The Solana getEpochSchedule method is essential for:
Validators: Determining leader schedules and epoch transitions.
Blockchain explorers: Displaying epoch duration and slot calculations.
Web3 applications: Adjusting staking and governance models based on epoch structure.
Analytics platforms: Understanding epoch-based network trends.
Code Example – Web3 getEpochSchedule Integration
Integration with Web3
Integrate the getEpochSchedule API with Solana’s Core API to retrieve real-time epoch structure details. By leveraging JSON-RPC parameters and endpoints, developers can track epoch progression, slot distribution, and leader schedule offsets, ensuring smooth blockchain operations.
Last updated