Assessment reports>Astria Shared Sequencer>Design>Subcomponent: API Server

Subcomponent: API Server

The API server has three routes:

  1. /healthz — This returns whether the relayer state is healthy, which is true when the relayer is connected to both the Sequencer and Celestia.

  2. /readyz — This returns whether the relayer state is ready, which is true if the relayer currently has a block from the sequencer and a data-availability height from Celestia.

  3. /status — This returns the relayer_state as a JSON object.

The relayer_state object looks as follows:

pub(crate) struct StateSnapshot {
    ready: bool,

    celestia_connected: bool,
    sequencer_connected: bool,

    latest_confirmed_celestia_height: Option<u64>,

    latest_fetched_sequencer_height: Option<u64>,
    latest_observed_sequencer_height: Option<u64>,
    latest_requested_sequencer_height: Option<u64>,
}
Zellic © 2025Back to top ↑