Parameters
object
Response
string
Public key of the current slot leader (base-58 encoded)
Code Examples
Basic Request
Request with Commitment
Using web3.js
Notes
- Returns the public key of the current slot leader
- The slot leader is responsible for producing the next block
- Different commitment levels can be specified
- The response is immediate as it reads from the current state
- The slot leader changes based on the network’s leader schedule
Best Practices
- Cache the slot leader when appropriate
- Consider using websocket subscription for real-time updates
- Handle network errors and retry when appropriate
- Use appropriate commitment level based on your needs
- Monitor slot leader changes for network analysis
Common Errors
Use Cases
-
Slot Leader Monitoring
-
Slot Leader Analysis
-
Slot Leader Tracking