Parameters
number
Fetch the leader schedule for the epoch containing this slot
object
Response
object
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
Use Cases
-
Validator Analysis
-
Leader Schedule Monitoring
-
Epoch Planning