Block and epoch exploration
Block and epoch exploration turns a slot or epoch number into a linked view of Solana ledger history. The block route explains one block and its activity. The epoch route places a group of slots between its boundary blocks and shows how that group relates to nearby epochs. Both routes use the selected cluster and keep their fetched data separate from other clusters. This page is a child of Network and ledger observability and relates to Live network statistics and supply and Alpenglow status and certification.
Exploration routes
The routes accept numeric ledger identifiers and use cluster-aware URL helpers for links between related objects. Search can offer a block or epoch destination from a numeric query. The route still checks the value before it loads chain data.
Block route
The /block/[slot] route presents one slot as a block detail view. Its shared page frame loads the block once. It then places an overview above tabs that use the same data. Each tab can focus on a different view of one ledger record.
The block route has an overview and four user-facing tab areas:
- Overview shows block identity, ledger links, timestamps, transaction counts, transaction-version mix, and compute-unit utilization.
- Transactions shows transactions in block order. It supports program, account, transaction-version, and result-status filters. It also supports sorting by fee, reserved compute units, consumed compute, or transaction cost. These choices stay in the URL so a combined view can be shared or cleared without losing other query settings.
- Rewards shows reward recipients, reward type, amount, resulting balance, and percent change when reward data exists.
- Programs summarizes the programs used by the block and the instructions that call them. It can show program transaction share, instruction share, and success rate when transaction results are complete.
- Accounts ranks accounts by how often block instructions use them. It separates read-only use from writable use and links each account back to a filtered transaction view.
The route also links the block to its parent and child slots, their leaders when known, its epoch, its timestamps, and its block hash values. These links form a small local map of ledger history rather than an isolated transaction list. References: home/…/layout.tsx• L20-63, home/…/layout.tsx• L93-115, home/…/page-client.tsx• L13-39, home/…/BlockOverviewCard.tsx• L48-186, home/…/BlockHistoryCard.tsx• L108-367
Epoch route
The /epoch/[epoch] route presents an epoch as a bounded section of the ledger. It rejects non-numeric route values before it loads cluster data. It shows the selected epoch and links to the previous epoch. It links to the next epoch only when that epoch has completed. For the current epoch it shows an in-progress state instead of inventing a final boundary.
The epoch overview connects schedule data with observed blocks. It shows the first and last slot in the scheduled range. It also shows the first confirmed block, the last confirmed block when available, and the UTC time of each boundary block. A future epoch is rejected before the route asks the provider for boundary blocks. References: home/…/page-client.tsx• L26-39, home/…/page-client.tsx• L43-75, home/…/page-client.tsx• L76-111, home/…/page.tsx• L11-22
Ledger links
Slots and epochs are the shared navigation units between the two routes. A linked slot opens /block/<slot>. A linked epoch opens /epoch/<epoch>. Block pages use the epoch schedule to label a slot. Epoch pages use the same schedule to calculate slot boundaries. References: home/…/Slot.tsx• L7-23, home/…/Epoch.tsx• L7-23, home/…/page-client.tsx• L18-29, home/…/epoch-schedule.ts• L37-80
Block data model
The block data model is the shared shape between the RPC response and the block components. It preserves block identity, transaction results, rewards, and message information for the four block views. It also lets supported transaction versions use one common view.
Block entity
BlockWithV1 represents a block with its transaction list. Each transaction carries its decoded message, signatures, result metadata, and version. The model also allows transaction configuration data for resource-use displays. The same block shape is exposed to compute-unit summaries. The entity boundary also exposes the known transaction-version catalog and its block summary. This gives the block components one stable input instead of making each view understand the RPC wire format. References: home/…/types.ts• L6-24, home/…/index.ts• L1-4, home/…/index.ts• L1-3
Transaction version summary
The transaction version summary turns the versions in a block into a stable breakdown for presentation. It counts legacy, v0, and v1 transactions. It gives each known version a share of the block and includes versions with a zero count. This keeps the overview and filter options predictable across blocks. An empty block reports zero shares instead of dividing by zero. References: home/…/transaction-versions.ts• L5-23, home/…/transaction-versions.ts• L25-46, home/…/transaction-versions.spec.ts• L10-31
RPC response boundary
The block data boundary requests a confirmed block with full transaction details and rewards. It validates block-level fields before the page can use them. It also converts numeric RPC values into the shape expected by the views. An unreadable transaction is omitted and logged as its own row-level problem. One bad transaction therefore does not make the whole block unusable.
The response boundary keeps the original transaction bytes long enough to decode supported message versions. The resulting message interface lets the views resolve program and account use in the same way for each supported version. References: home/…/fetch-block.ts• L23-67, home/…/fetch-block.ts• L70-106, home/…/fetch-block.ts• L109-142, home/…/block-response-schema.ts• L41-106
Block presentation components
The block components turn one normalized block into related summaries. They read transaction messages and metadata to derive program counts, account access counts, instruction totals, result status, resource use, and reward changes. The overview adds the identity and context needed to orient the reader before the tab views. The route supplies the same block to each tab, so these summaries describe one consistent ledger record.
The transaction view applies program, account, version, and status filters. It stores those choices in URL parameters and keeps them when the reader changes sort order. Sortable fields include index, fee, consumed compute units, reserved compute units, and transaction cost. The default view is block order. Missing numeric values remain after known values when the reader sorts by a numeric field. On small screens, a sort menu exposes the same choices as the table headers. References: home/…/BlockHistoryCard.tsx• L108-137, home/…/BlockHistoryCard.tsx• L214-255, home/…/BlockHistoryCard.tsx• L273-367, home/…/BlockHistoryCard.tsx• L747-839, home/…/block-history-sort.ts• L8-20, home/…/block-history-sort.ts• L32-69, home/…/block-history-sort.ts• L71-95
Provider interactions
Providers coordinate route data with the selected cluster. A block provider stores block results by slot. An epoch provider stores epoch boundary results by epoch. Both providers use the shared cache state model and clear their entries when the RPC endpoint changes.
Block provider
When a block route has a valid slot and the cluster is connected, the block provider requests that slot. It stores fetching, fetched, and failed states separately from block data. This lets the route distinguish loading, a missing block, and a failed request.
After the main block request succeeds, the provider looks for the next confirmed child slot. It also obtains leader information for the block, its parent, and its child when available. Leader lookup is supporting context. If it fails, the block can still render without those labels. References: home/…/block.tsx• L23-31, home/…/block.tsx• L39-61, home/…/block.tsx• L64-121, home/…/layout.tsx• L43-57
Epoch provider
When an epoch is not in the future and the cluster is connected, the epoch provider finds the first confirmed block near the start of the scheduled range. It then finds the last confirmed block near its end and reads their block times. The route uses these observations to show the epoch's actual boundaries.
The current epoch differs from a completed epoch. Its first block must exist. Its last block may not exist yet. The provider accepts that missing final block and lets the route present the epoch as in progress. A missing first block or a missing final block for a completed epoch becomes a fetch failure. References: home/…/epoch.tsx• L24-61, home/…/epoch.tsx• L64-128, home/…/page-client.tsx• L47-103
Endpoint-scoped cache
The shared cache keys entries by route resource and records request state. Updates from a different endpoint are ignored. An endpoint change clears the old entries. This boundary prevents a block or epoch from one cluster from appearing under another cluster after a selection change. References: home/…/cache.tsx• L9-19, home/…/cache.tsx• L21-39, home/…/cache.tsx• L77-104, home/…/block.tsx• L39-51, home/…/epoch.tsx• L39-51
Epoch schedule
The epoch schedule is the shared rule that maps slots to epochs and epochs to slot ranges. It accounts for early epochs with a growing slot count and later epochs with a normal fixed slot count. The block route uses the rule in one direction. The epoch route uses it in the other direction.
Slot and epoch boundaries
For a block, the schedule identifies the epoch that contains its slot. For an epoch, it supplies the first slot and the slot immediately before the next epoch's first slot as its last slot. These calculations give both routes a common view of ledger position even before boundary blocks are fetched. References: home/…/epoch-schedule.ts• L5-12, home/…/epoch-schedule.ts• L37-80
Compute limit context
The same schedule context supports block resource displays. The Explorer selects the maximum compute-unit limit active for the block's epoch and cluster. It compares the block's transaction cost and reserved compute units with that limit. Custom clusters use the latest known limit as a practical fallback. References: home/…/epoch-schedule.ts• L83-100, home/…/epoch-schedule.ts• L152-180, home/…/layout.tsx• L59-73
Exploration search
Search provides a fast entry point to both routes without querying the chain for every keystroke. A natural number is treated as a possible slot for the block route. The same number is offered as an epoch only when current cluster context is available and the value is no more than one epoch beyond the current epoch.
The two search choices use different priorities so a numeric query can present both meanings without changing the destination paths. The selected result then enters the same cluster-aware route and provider flow as a direct URL. References: home/…/block-search-provider.ts• L5-35, home/…/epoch-search-provider.ts• L5-39
Change checklist
When these files or sections are changed, remember to consider these:
- When the block response shape changes, keep validation, numeric conversion, transaction decoding, and all four block views aligned. A field that is accepted but not adapted can fail only in a secondary tab.
- When block overview fields or compute totals change, keep the shared block entity, compute-unit summary, cluster and epoch limit context, and overview display aligned.
- When transaction versions change, update the shared version catalog, the block version summary, the overview breakdown, the transaction filter, and the version labels together. Keep the entity exports aligned with every new public summary type.
- When transaction result states or filters change, keep status detection, filter query parameters, result badges, filter chips, and empty-result messages aligned. Preserve other block filters when a status choice changes.
- When slot or epoch schedule rules change, review block epoch labels, epoch first and last slots, boundary-block requests, and compute-limit selection together.
- When a block tab adds a filter or sort key, keep its URL query meaning aligned with account links and program filters so a copied filtered URL opens the same view. Keep table headers, the small-screen sort menu, and the pure sort model aligned.
- When cluster selection or RPC commitment changes, preserve endpoint-scoped cache clearing and the distinction between a missing resource and a failed request.
- When leader lookup becomes required or its range changes, keep leader context optional so a supporting RPC failure does not hide a valid block.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A block response is absent for a valid slot | The route must show that the block was not found rather than a blank success view | Keep the fetched-empty state distinct from not-yet-fetched state and expose a retry for request failures |
| A block contains an unreadable transaction | Version counts and compute totals are incomplete, and derived views may omit that transaction | Validate and adapt transactions independently. Mark affected overview summaries as incomplete |
| Transaction result metadata is incomplete | The overview cannot show a reliable successful-transaction count | Show that count only when metadata exists for every transaction |
| A block response fails validation | The block cannot be rendered as a reliable overview | Treat validation failure as a fetch failure instead of drawing partial block data |
| The version catalog and version summary use different known versions | The overview and transaction filter can show different transaction-version information | Keep both consumers on BLOCK_TRANSACTION_VERSIONS and test counts and shares from the same catalog |
| A future epoch is requested | The route may ask for boundary blocks that cannot exist | Compare the requested epoch with the current cluster epoch before fetching |
| The last boundary block is absent for a completed epoch | The epoch summary has no trustworthy end block or time | Fail the completed-epoch fetch. Allow the current epoch to remain in progress |
| A cluster changes while a block or epoch request is in flight | Data from the old endpoint can appear in the new route | Clear cache entries on endpoint change and ignore updates for another endpoint |
| A supporting leader lookup fails | Leader labels are unavailable even though block data is valid | Keep parent, block, and child leader fields optional |
| A status or sort filter matches no transactions | The transaction view shows an empty result even though the block has transactions | Keep the empty-filter state distinct from an empty block. Preserve the other URL filters and provide a way to clear the active filter |
| A sort parameter names an unsupported field or direction | The transaction view can show an unexpected order or a broken shared URL | Accept only the shared sort modes and directions. Fall back to block order and keep the default order represented by a clean URL |
Key files
| File | Why to read it |
|---|---|
| home/…/layout.tsx | Defines the block detail frame, overview placement, navigation tabs, and block-level resource context. |
| home/…/BlockOverviewCard.tsx | Presents block identity, ledger links, transaction counts, version mix, compute-unit utilization, and incomplete-summary warnings. |
| home/…/BlockHistoryCard.tsx | Shows the transaction exploration view with version, status, program, and account filters plus URL-backed sorting and resource columns. |
| home/…/block-history-sort.ts | Defines the shared sort modes, default directions, numeric ordering, and URL transitions for the transaction view. |
| home/…/BlockHistoryCard.filters.spec.tsx | Protects the combined filter contract, including transaction status filtering and preservation of other URL parameters. |
| home/…/BlockProgramsCard.tsx | Shows how program activity becomes block-level statistics. |
| home/…/BlockAccountsCard.tsx | Shows how account reads and writes become a ranked block summary. |
| home/…/BlockRewardsCard.tsx | Shows the user-facing reward view for a block. |
| home/…/fetch-block.ts | Defines the boundary between RPC block data and the normalized block entity. |
| home/…/types.ts | Defines the common block and transaction shape consumed by the block views. |
| home/…/transaction-versions.ts | Defines the shared transaction-version catalog and the block-level version breakdown. |
| home/…/index.ts | Exposes the block entity and version summary to presentation components. |
| home/…/index.ts | Shares the block entity shape with compute-unit summaries. |
| home/…/block.tsx | Coordinates block fetches, leader context, request states, and endpoint scope. |
| home/…/page-client.tsx | Defines epoch validation, boundary presentation, neighbor links, loading states, and in-progress behavior. |
| home/…/epoch.tsx | Coordinates epoch boundary-block and timestamp reads. |
| home/…/epoch-schedule.ts | Defines the slot-to-epoch and epoch-to-slot relationships used by both routes. |
| home/…/block-search-provider.ts | Defines numeric search entry into block routes. |
| home/…/epoch-search-provider.ts | Defines numeric search entry into valid current or next epoch routes. |