Alpenglow status and certification
Explorer uses the selected cluster's RPC endpoint to determine whether Alpenglow consensus has started. It validates the genesis certificate, derives a small set of protocol states, and shows a status card on the landing view only when the result is useful to a visitor.
The page belongs to the broader network observability area. The landing view also presents live network statistics, while the certificate's genesis slot links into block and epoch exploration.
Certificate lifecycle
Genesis certificate
The genesis certificate is the node's record of the block and slot at which Alpenglow consensus begins. Explorer asks the selected RPC endpoint for this record and accepts it only when the response has a valid block identifier and a non-negative slot.
The certificate has two values that matter to the status card:
| Value | Purpose |
|---|---|
| Certified block ID | Identifies the block covered by the migration certificate. |
| Genesis slot | Identifies where Alpenglow consensus begins and provides a link to the block view. |
The endpoint can return no certificate before the migration. A valid certificate means the migration is complete. A response that does not match the expected shape is treated as unreadable data rather than as a completed migration.
References: app/…/fetch-ag-genesis-cert.ts• L37-63 app/…/genesis-cert.ts• L4-23
RPC answer handling
The fetch step separates settled answers from temporary connection failures. This distinction keeps an endpoint that cannot support or serve the method from receiving pointless retries, while still allowing a temporary node or network failure to use the normal retry path.
| RPC result | Meaning for Explorer |
|---|---|
| Method is missing or the endpoint returns 404 | The endpoint does not support Alpenglow status. |
| Endpoint returns 401, 403, or 429 | The endpoint refuses this request. |
| Response is malformed | The endpoint returned unreadable certificate data. |
Response is null | The cluster has no certificate yet. |
| Valid certificate | The cluster has migrated. |
| Other transport or RPC failure | A temporary lookup failure is raised for the status layer to handle. |
An unsupported method is a settled result because another request cannot add support. A refused request is also returned as a settled result for the current lookup, even though a rate limit can clear or access for a custom endpoint can be corrected later. Other transport failures remain available to the normal retry path.
The request has a time limit so an RPC endpoint that accepts the connection but does not answer cannot hold the landing view in an endless wait.
References: app/…/fetch-ag-genesis-cert.ts• L23-79 app/…/fetch-ag-genesis-cert.spec.ts• L51-78 app/…/fetch-ag-genesis-cert.spec.ts• L90-175
Protocol status
Status derivation
The status hook combines the RPC answer with the selected cluster and its connectable endpoint. Its output gives the UI a stable view of the migration without exposing the different RPC error forms.
The status states are:
| Status | Meaning |
|---|---|
loading | The selected endpoint has not answered yet, or its custom URL is not ready. |
pending | The endpoint answered, but no genesis certificate exists. |
migrated | Explorer accepted a genesis certificate for the cluster. |
unavailable | The endpoint cannot provide a usable status. |
Explorer checks the endpoint again every 60 seconds only while the cluster is pending. It stops polling after migration or after a settled unavailable answer. A temporary lookup failure has a limited retry count, and the last known pending state remains visible during a failed poll.
The cluster and its connectable endpoint both identify the lookup. A change to either starts the status flow from a loading state, which prevents figures from one cluster or endpoint from appearing for another. A custom endpoint is not queried until its URL is ready.
References: app/…/use-alpenglow-status.ts• L12-67 app/…/use-alpenglow-status.spec.tsx• L46-117 app/…/use-alpenglow-status.spec.tsx• L120-172 app/…/use-alpenglow-status.spec.tsx• L174-215
Landing view card
Card placement
The landing view presents staking information first, then live cluster and transaction statistics. It renders the Alpenglow card after those summaries and before developer resources and upcoming features.
The card does not show a loading placeholder. It also stays hidden when the endpoint cannot provide a meaningful Alpenglow answer, because either display would suggest a status that Explorer does not know.
References: app/page.tsx• L29-49 app/…/AlpenglowCard.tsx• L8-20 app/…/AlpenglowCard.spec.tsx• L21-32
Card content
The card names the selected cluster and shows the consensus that applies to it. Before migration, it reports TowerBFT and states that Alpenglow is not activated. After migration, it reports Alpenglow and adds the certified block and genesis slot.
The card uses the same status presentation for the selected cluster, including migrated clusters such as Devnet. The genesis slot is a link to the block view. The certified block ID is copyable, and the card provides an external link for general information about the Alpenglow upgrade.
References: app/…/BaseAlpenglowCard.tsx• L11-57 app/…/BaseAlpenglowCard.stories.tsx• L24-35 app/…/AlpenglowCard.spec.tsx• L34-47
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the RPC answer categories aligned with the status states so a new settled answer does not enter the retry path or display an incorrect card.
- Keep certificate validation aligned with the values rendered by the card and linked by the slot component.
- Keep the status lookup key tied to both the selected cluster and its connectable endpoint so a custom RPC cannot reuse another endpoint's result.
- Keep the landing view placement and the card's hidden states consistent with the meaning of unavailable status.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| RPC method is missing or returns 404 | Explorer hides the card instead of showing an unsupported cluster as pending. | Map the method error and 404 response to unavailable. |
| RPC returns 401, 403, or 429 | Repeated requests can worsen the endpoint refusal. | Treat the response as a settled refusal and do not immediately retry it. |
| Certificate block ID or slot has the wrong shape | Explorer could show a false migration or link to invalid data. | Reject the certificate before deriving migrated. |
| Endpoint times out or returns another RPC failure | The lookup cannot establish status. | Bound the request and cap retries before reporting unavailable. |
| Selected cluster or endpoint changes while a lookup is cached | Data from the previous cluster could appear on the new cluster. | Include both values in the status lookup identity. |
Key files
| File | Why to read it |
|---|---|
| app/…/fetch-ag-genesis-cert.ts | Defines the RPC request and the meaning of node answers. |
| app/…/genesis-cert.ts | Defines the certificate data used to identify migration. |
| app/…/use-alpenglow-status.ts | Derives user-facing status and controls polling and retries. |
| app/…/use-alpenglow-status.spec.tsx | Shows the status contract for custom endpoint readiness, cache isolation, polling, and settled failures. |
| app/…/AlpenglowCard.tsx | Connects derived status to conditional card visibility. |
| app/…/BaseAlpenglowCard.tsx | Presents consensus, migration data, and related links. |
| app/…/BaseAlpenglowCard.stories.tsx | Shows the pending and migrated card states across clusters. |
| app/page.tsx | Shows where the status card sits in the landing view. |