Blocks & Slots
minimumLedgerSlot
Returns the lowest slot that the node has information about in its ledger
Parameters
This method does not accept any parameters.
Response
The lowest slot that the node has information about in its ledger
Code Examples
Basic Request
Using web3.js
Notes
- Returns the lowest slot in the node’s ledger
- The response is immediate as it reads from the current state
- The minimum slot can change as the ledger is pruned
- Slots below this value are not accessible
- The value may vary between nodes based on their configuration
Best Practices
- Use this method to determine ledger boundaries
- Cache results when appropriate to reduce RPC load
- Monitor for changes in minimum slot
- Consider using websocket subscription for real-time updates
- Handle network errors and retry when appropriate
Common Errors
Code | Message | Solution |
---|---|---|
-32601 | Method not found | Verify you’re connected to a Solana RPC node |
-32603 | Internal error | Node may be bootstrapping or syncing |
Use Cases
-
Ledger Analysis
-
Ledger Monitoring
-
Ledger Planning