Network and ledger observability
The Explorer presents a selected Solana cluster as a readable view of ledger state and network activity. It connects routes and the home dashboard to cluster data for blocks, epochs, supply, transaction volume, chain timing, Alpenglow status, and chain configuration while keeping connection health separate from optional live data.
Cluster data model
The cluster selection identifies the network and its RPC endpoint. An RPC endpoint is the service that answers requests for chain data. The Explorer checks endpoint identity first, then loads ledger details and live signals only when a view needs them.
flowchart LR
Selection[Cluster selection] --> Endpoint[RPC endpoint]
Endpoint --> Health[Connection health]
Endpoint --> Ledger[Ledger information]
Endpoint --> Signals[Live signals]
Health --> Routes[Explorer routes]
Ledger --> Routes
Signals --> Dashboard[Home dashboard]
The health check uses the genesis hash as a stable identity check. Epoch information, the epoch schedule, and the first available block form a separate ledger-information view. This separation lets a route show a loading state when one data group is unavailable without treating every partial RPC failure as a lost connection.
References: app/…/cluster-provider.tsx• L38-91 app/…/fetch-cluster-info.ts• L5-18 app/…/types.ts• L11-16
Cluster selection
The Explorer supports named Solana clusters and a user-approved custom RPC endpoint. The selected cluster controls every ledger request, so changing it resets the view of live data and cached route data to prevent values from one network appearing under another.
The main cluster choices are:
| Cluster | Purpose |
|---|---|
| Mainnet Beta | Production Solana ledger data |
| Testnet | Shared network testing |
| Devnet | Development and application testing |
| SIMD-296 | A separate network used for that feature path |
| Custom | A user-provided RPC endpoint |
An inbound custom endpoint is parsed before the Explorer uses it. The endpoint is honored without another prompt for local endpoints, approved origins, and deployment-approved hosts. Other valid endpoints remain pending until the user approves them. This decision is carried through navigation so the prompt does not lose the endpoint it describes. The app layer now owns the router binding: it supplies the current query parameters and replaces them without adding a browser history entry. A URL fragment is kept during this correction, so an anchor link remains valid.
References: app/…/cluster.tsx• L3-35 app/…/cluster-provider.tsx• L38-52 app/…/use-cluster-url.ts• L20-99 app/…/cluster.ts• L3-17 app/…/resolve-cluster.ts• L15-64
Ledger exploration
Ledger exploration turns a slot or epoch number into a linked view of chain history. A slot is a position in the Solana ledger. A block is the data recorded at a slot, while an epoch is a scheduled range of slots.
Block route
The /block/[slot] route explains one block and connects it to nearby ledger state. Its overview relates the block to its parent and child slots, the slot leader, its epoch, its time, and the transactions and compute resources recorded in the block. It also shows transaction versions and successful transaction counts when the block data is complete. A sticky tab bar keeps transaction, reward, program, and account views available as related views of the same block.
The transaction view turns the block record into a searchable and sortable history. It can narrow records by program, account, transaction version, or transaction result, then order them by ledger index, fee, consumed compute units, reserved compute units, or transaction cost. The selected filters and sort order live in the URL, so a change to one choice keeps the other choices and the cluster context. Desktop headers and a mobile menu expose the same sort choices, while unavailable numeric values remain after known values. The view starts with a bounded set of records and lets the reader load more results when needed.
See Block and epoch exploration for the detailed block and epoch route behavior.
References: app/…/layout.tsx• L20-76 app/…/layout.tsx• L93-114 app/…/page-client.tsx• L13-39 app/…/BlockOverviewCard.tsx• L39-49 app/…/BlockOverviewCard.tsx• L54-149 app/…/BlockHistoryCard.tsx• L42-79 app/…/BlockHistoryCard.tsx• L93-120 app/…/BlockHistoryCard.tsx• L197-238 app/…/BlockHistoryCard.tsx• L252-349 app/…/BlockHistoryCard.tsx• L413-425 app/…/BlockHistoryCard.tsx• L746-833 app/…/block-history-sort.ts• L8-20 app/…/block-history-sort.ts• L24-69 app/…/block-history-sort.ts• L71-96
Epoch route
The /epoch/[epoch] route summarizes a completed or active epoch. It shows the epoch range, its neighboring epochs, the first and last blocks, and the available block times. An active epoch has no final last block yet, so the route identifies it as in progress instead of treating the missing boundary as an error.
The route first checks that the path value is a number. It then uses the current epoch and epoch schedule from the selected cluster to reject future epochs and to map the epoch number to its slot range. It loads the boundary blocks needed for the summary only after the cluster is connected.
References: app/…/page-client.tsx• L25-84 app/…/page-client.tsx• L100-164 app/…/epoch.tsx• L64-128
Live network signals
The home dashboard combines short-lived RPC readings with recent performance samples. It shows the current position of the selected cluster and gives a view of transaction activity without claiming that a temporarily missing signal means the chain is unavailable.
Ledger position signals
The live cluster view reports the current slot, block height, cluster time, slot time averages, epoch, epoch progress, and an approximate time remaining in the epoch. Epoch information provides the current slot and epoch position. Recent performance samples provide the timing rates used for the slot-time averages.
A block-time reading anchors the displayed cluster time. Later epoch readings can estimate the current block time from that anchor and the one-hour slot-time rate until a newer block-time reading arrives. The estimate is not advanced when the required slot-time or anchor data is missing.
The stats view refreshes while it is active and the browser tab is visible. It reads recent performance samples, transaction count, epoch position, and the time of the latest block as separate live signals. It waits for a usable endpoint before polling, which prevents a custom endpoint that is still awaiting consent from being replaced by a fallback endpoint. A cluster change clears the old values before the new endpoint supplies data.
References: app/page.tsx• L170-247 app/…/solanaClusterStats.tsx• L80-90 app/…/solanaClusterStats.tsx• L95-238 app/…/solanaClusterStats.tsx• L240-275 app/…/solanaDashboardInfo.tsx• L72-127 app/…/solanaDashboardInfo.test.ts• L350-545
Supply and stake signals
The supply view reports circulating, non-circulating, and total supply from a finalized cluster reading. It also shows active stake and the share of stake marked delinquent when vote-account data is available. These values describe the selected cluster, not a global value shared across networks. A shared server boundary validates the supply shape before the server route returns it, while direct browser requests apply the same validation locally.
Known remote clusters use the server supply route. Custom clusters and known clusters that point to a local validator use the browser-to-RPC path because the server must not resolve caller-provided or locally reachable endpoints. Both paths use the same supply shape and reject values that cannot be trusted as a valid pair.
Supply waits until a usable endpoint exists, but it does not wait for the separate cluster health check to finish. A failed server request can be retried when the failure may change, while a response that shows a fixed configuration or data problem is marked unavailable rather than presented as zero. Direct requests to custom endpoints avoid repeated scans, and an existing value remains visible during a failed revalidation. Changing the endpoint prevents the old supply from remaining under the new cluster.
References: app/…/route.ts• L21-61 app/…/route.ts• L66-99 app/…/server.ts• L1-3 app/…/should-use-direct-rpc.ts• L16-23 app/…/fetch-supply.ts• L25-87 app/…/use-supply.ts• L23-76 app/…/supply.ts• L4-43 app/…/use-supply.spec.tsx• L68-118 app/…/use-supply.spec.tsx• L131-186 app/…/use-supply.spec.tsx• L380-462
Transaction activity signals
The live transaction view reports the confirmed transaction count and the average transactions per second (TPS). TPS means the number of transactions observed per second. Recent performance samples also form three history ranges: 30 minutes, 2 hours, and 6 hours.
The view keeps the current count and recent rate together. This makes the count useful as a running network total while the TPS chart shows recent change in activity. See Live network statistics and supply for the detailed signal, state, cache, and fallback behavior.
References: app/…/LiveTransactionStatsCard.tsx• L38-59 app/…/LiveTransactionStatsCard.tsx• L159-232 app/…/solanaClusterStats.tsx• L95-162 app/…/solanaPerformanceInfo.tsx• L3-19
Alpenglow status
The Alpenglow status view reports whether the selected cluster has a readable Alpenglow genesis certificate. A certificate marks a completed migration, while an absent certificate means the migration is still pending. The card names the cluster and the consensus in force, and links the migration certificate's genesis slot to its block when migration is complete. Loading and unavailable results produce no card rather than a misleading status.
The view waits for a connectable endpoint before it asks the node. It polls only while the certificate is absent, then stops once the result is settled. A cluster change starts from a new loading state so a result from the previous cluster cannot remain visible.
Unsupported, refused, unreadable, and failed lookups are shown as unavailable rather than as a completed or pending state. See Alpenglow status and certification for the detailed status and certification behavior.
References: app/…/use-alpenglow-status.spec.tsx• L46-117 app/…/use-alpenglow-status.spec.tsx• L122-161 app/…/use-alpenglow-status.spec.tsx• L174-215 app/…/AlpenglowCard.spec.tsx• L21-47 app/…/BaseAlpenglowCard.stories.tsx• L8-35
Chain configuration
Chain configuration tells the Explorer how to interpret ledger positions for the selected cluster. The shared cluster information includes the current epoch position, the schedule that maps epochs to slots, and the earliest block the node can provide.
The epoch schedule is the link between the two exploration routes: the block route uses it to label a slot with an epoch, while the epoch route uses it to calculate the first and last slot in an epoch. The first available block also sets the practical lower bound of history exposed by an RPC node.
References: app/…/types.ts• L3-16 app/…/fetch-cluster-info.ts• L7-18 app/…/page-client.tsx• L18-29 app/…/page-client.tsx• L48-84
Change checklist
When these files or sections are changed, remember to consider these:
- When cluster URL or selection rules change, keep browser routes, direct RPC requests, and server API routes aligned. Confirm that custom or local endpoints cannot reach the server route and that pending custom endpoints survive in-app navigation.
- When the app-layer cluster provider changes, preserve query correction with
replacerather thanpushand keep URL fragments during the correction. The entity provider must still receive the current search parameters and a router-independent replacement callback. - When the supply route query contract changes, update the client request shape and preserve the distinction between caller input errors, unavailable cluster configuration, and retryable upstream failures.
- When epoch schedule rules change, review both slot-to-epoch labels on block routes and slot-range calculations on epoch routes.
- When block overview fields or transaction summaries change, keep incomplete-data warnings aligned with the values that may omit unreadable transactions.
- When block transaction filters or sort modes change, keep their URL parameters, desktop controls, mobile controls, result counts, and clear actions aligned. Preserve unrelated cluster and filter parameters when one choice changes.
- When a live signal changes its RPC source or freshness, update the state that marks the signal ready and the view that reports loading or error states together.
- When slot-time measurement changes, preserve the separate one-hour and newest-minute meanings. Do not use an older sample as the current minute when the newest minute has no slots.
- When block-time estimation changes, keep the observed block-time anchor and the slot-time rate consistent with the displayed epoch position.
- When supply or stake semantics change, check the relationship between finalized supply data and the separately loaded vote-account data.
- When supply retry or timeout rules change, keep server-route failures distinct from direct custom-node failures and preserve the no-stale-value behavior after a cluster or endpoint change.
- When Alpenglow status states or polling rules change, keep pending, settled, and unavailable results distinct and include the connectable endpoint in the data identity.
- When Alpenglow card states or links change, keep loading and unavailable results hidden while keeping cluster, consensus, and migrated genesis-block details aligned with the status model.
- When dashboard polling or visibility behavior changes, preserve reset behavior on cluster changes and avoid updating hidden views as if they were live.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The endpoint cannot return its genesis hash | The cluster remains connecting or enters failure, so dependent views do not present it as connected. | Keep connection health separate from optional ledger information and show the route loading or error state. |
| A custom endpoint is still awaiting consent | Live stats do not have a usable endpoint and must not poll the fallback endpoint. | Gate polling on the connectable endpoint and preserve the pending endpoint during navigation. |
| A query correction uses history push or drops the URL fragment | Back navigation can repeat the correction, or a deep link can lose its anchor. | Use router replacement and append the current fragment to the corrected URL. |
| The block slot is malformed, unsafe, or not an integer | The block route must not request an ambiguous ledger position. | Validate the slot before fetching the block and route invalid values to the not-found state. |
| The block transaction query contains an unsupported filter or sort value | The view could show a misleading filtered or ordered result. | Parse filters and sort values against the supported domain and fall back to the default state. |
| A block contains unreadable transactions | Version counts and compute totals can be partial. | Mark those summaries incomplete and show a warning instead of presenting them as full totals. |
| The supply route receives a custom cluster or a non-canonical query | The server rejects the request instead of resolving a caller-provided endpoint or creating another cache key. | Accept only the canonical cluster query and resolve known clusters on the server. |
| A performance request returns no samples | TPS and slot-time data cannot become ready from that response. | Keep the signal in its loading path and allow the provider timeout or a later refresh to resolve it. |
| The newest performance sample has no slots | The one-minute slot-time signal is absent rather than falsely reporting an older minute. | Keep the one-hour rate separate and only expose the one-minute rate when the newest sample has slots. |
| Supply RPC data fails | The supply area shows an error or unavailable state instead of stale or partial totals. | Classify retryable failures, cap retries, and validate the shared supply payload before display. |
| A requested epoch is greater than the current epoch | The route reports that the epoch has not started. | Compare the requested epoch with current cluster epoch information before loading its boundary blocks. |
| A block or an epoch boundary block is unavailable | The block route reports a missing block, or the epoch route reports a fetch failure. | Distinguish a missing block from a failed request and keep retry paths for fetch failures. |
| An Alpenglow lookup has no usable endpoint or returns an unsettled answer | The status stays loading or pending and must not claim that migration completed. | Gate the lookup on the connectable endpoint and poll only for an absent certificate. |
| An Alpenglow answer is refused, unsupported, unreadable, or repeatedly failing | The status becomes unavailable and the card stays hidden rather than showing a false state. | Classify the answer as unavailable, cap retries for failures, and stop polling settled results. |
Key files
| File | Why to read it |
|---|---|
| app/layout.tsx | Shows where cluster state enters the application and where cluster selection and consent UI surround all routes. |
| app/…/cluster.tsx | Binds cluster state to navigation while preserving the public cluster API used by the app. |
| app/…/cluster-provider.tsx | Defines the connection boundary and the separation between health and ledger information. |
| app/…/use-cluster-url.ts | Defines endpoint consent, pending custom URLs, and URL correction behavior. |
| app/…/resolve-cluster.ts | Defines how inbound cluster and custom endpoint choices are trusted and carried through navigation. |
| app/…/cluster-from-param.ts | Defines the server boundary between known clusters and caller-provided custom endpoints. |
| app/…/fetch-cluster-info.ts | Defines the shared cluster facts used by block and epoch exploration. |
| app/…/layout.tsx | Shows the block overview, loading and missing-block states, and its related exploration tabs. |
| app/…/page-client.tsx | Connects the block transaction view to the selected slot, cluster status, and epoch label. |
| app/…/BlockOverviewCard.tsx | Shows the block-level identity, transaction, and compute summaries, including incomplete-data warnings. |
| app/…/BlockHistoryCard.tsx | Shows how block transactions become filterable, sortable, and incrementally visible. |
| app/…/block-history-sort.ts | Defines the supported transaction sort modes, default directions, missing-value order, and URL transitions. |
| app/…/BlockHistoryCard.filters.spec.tsx | Records the URL-preservation and status-filter guarantees for block transaction history. |
| app/…/page-client.tsx | Shows how an epoch becomes a bounded, navigable summary. |
| app/…/solanaClusterStats.tsx | Coordinates the live dashboard readings, endpoint gating, and refresh lifecycle. |
| app/…/solanaDashboardInfo.tsx | Defines how epoch readings and performance samples become slot-time and block-time signals. |
| app/…/solanaDashboardInfo.test.ts | Records the guarantees for slot-time readiness, zero-slot samples, and block-time estimation. |
| app/…/route.ts | Defines the server supply boundary for known clusters and its upstream failure responses. |
| app/…/server.ts | Exposes the shared supply conversion at the server boundary. |
| app/…/use-supply.ts | Selects the server or direct-RPC supply path and exposes retry or unavailable states. |
| app/…/use-supply.spec.tsx | Records endpoint choice, timeout, retry, cache, and failure-reporting guarantees for supply. |
| app/…/LiveTransactionStatsCard.tsx | Presents transaction count, TPS, and selectable history ranges. |
| app/…/use-alpenglow-status.ts | Defines the live Alpenglow status states and polling behavior. |
| app/…/use-alpenglow-status.spec.tsx | Records endpoint gating, cluster isolation, polling, retry, and settled-status guarantees. |
| app/…/AlpenglowCard.tsx | Presents the selected cluster's consensus state and the migrated genesis block. |
| app/…/AlpenglowCard.spec.tsx | Records the card's hidden, pending, and migrated display contracts. |