Subcomponent: API Server
The API server has three routes:
/healthz— This returns whether the relayer state is healthy, which is true when the relayer is connected to both the Sequencer and Celestia./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./status— This returns therelayer_stateas 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>,
}