Skip to main content

Parameters

number
required
Start slot number
number
required
Number of slot leaders to return

Response

array
Array of slot leader public keys (base-58 encoded)

Code Examples

Basic Request

Using web3.js

Notes

  1. Returns the slot leaders for a given range of slots
  2. The slot leaders are responsible for producing blocks
  3. The response is immediate as it reads from the current state
  4. The slot leaders are determined by the network’s leader schedule
  5. The range must be within the current epoch

Best Practices

  1. Use appropriate start slot and limit based on your needs
  2. Cache results when appropriate to reduce RPC load
  3. Monitor for changes in the leader schedule
  4. Consider using websocket subscription for real-time updates
  5. Handle network errors and retry when appropriate

Common Errors

Use Cases

  1. Leader Schedule Analysis
  2. Leader Schedule Monitoring
  3. Leader Schedule Planning