Network
getMaxRetransmitSlot
Returns the highest slot that can be retransmitted
Parameters
This method does not take any parameters.
Response
The highest slot that can be retransmitted
Code Examples
Basic Request
Using web3.js
Notes
- Returns the highest slot that can be retransmitted
- Used to determine the range of slots available for retransmission
- The response is immediate as it reads from the current state
- Slots beyond this value cannot be retransmitted
- This value can change as the node prunes old data
Best Practices
- Use this method to determine retransmission availability
- Cache results when appropriate to reduce RPC load
- Consider the impact of slot pruning
- Monitor for changes in max retransmit slot
- Use in conjunction with other slot-related methods
Common Errors
Code | Message | Solution |
---|---|---|
-32601 | Method not found | Verify you’re connected to a Solana RPC node |
-32007 | Slot information unavailable | Node may be bootstrapping or syncing |
Use Cases
-
Retransmission Planning
-
Slot Availability Monitoring
-
Historical Data Management