A Solana node can't find old blocks. How can I tell if its historical coverage is insufficient?
Solana provides two endpoints for querying historical boundaries. minimumLedgerSlot returns the lowest slot still retained in the node's local ledger. getFirstAvailableBlock returns the slot of the earliest confirmed block that can still be queried. The first tells you where the local records begin; the second tells you how far back confirmed blocks can be read.
For example, a service is preparing to recompute a segment of historical activity, and the target slot is earlier than the earliest available confirmed block reported by the current node. In this case, mark that segment as missing data and verify it using a node that has the corresponding history. Even if the target slot is after this boundary, you should still check the read results segment by segment, because the earliest available position does not prove that every subsequent slot has a block.
The report can record the queried node, target slot range, and two boundary readings. For statistics, leave intervals that could not be read blank to avoid interpreting insufficient historical coverage as zero activity.
$SOL #Solana
Documentation https://solana.com/docs/rpc/http/getfirstavailableblock
https://solana.com/docs/rpc/http/minimumledgerslot