Parameters
Fetch the leader schedule for the epoch containing this slot
Response
Code Examples
Basic Request
Request for Specific Validator
Using web3.js
Notes
- Returns the leader schedule for the current or specified epoch
- Can filter to show only a specific validator’s slots
- Leader slots are assigned to validators based on stake weight
- The schedule is fixed for the duration of an epoch
- Response includes the slot at which the request was processed
Best Practices
- Use appropriate commitment level based on your needs
- Filter by validator identity when only interested in specific validators
- Cache results when appropriate to reduce RPC load
- Monitor for changes in leader schedule
- Use in conjunction with other validator-related methods
Common Errors
Code | Message | Solution |
---|---|---|
-32601 | Method not found | Verify you’re connected to a Solana RPC node |
-32602 | Invalid params | Check slot and identity parameters |
-32007 | Schedule information unavailable | Node may be bootstrapping or syncing |
Use Cases
-
Validator Analysis
-
Leader Schedule Monitoring
-
Epoch Planning