Get status

Retrieve sentry synchronization status per chain

Description

This endpoint facilitates the retrieval of synchronization status, block delay, and delay in seconds for each integrated chain within Sentry. Over time, chains integrated into Sentry may fall out of sync. This endpoint provides essential information to monitor and manage synchronization effectively.

Endpoint

GET https://sentry.aleno.ai/status

Query Parameters

NamerequiredTypeDescription

chainId

required

string

Identifier of the chain for which to check synchronization status

CURL example

curl -X GET https://sentry.aleno.ai/status?chainId=eth

Result

When the chain is synchronized and operational, the status is set to 1. If the system is out of sync or down, it is set to 0.

It returns a status object:

Nametype description

status

boolean

1 if sentry is up and 0 otherwise.

sentryLastProcessedBlock

number

Value of the last block number processed by Sentry.

rpcLastProcessedBlocknumber

Value of the last block number processed by an external RPC.

rpcDelay.blockDelay

number

the number of delayed blocks observed in comparison to an external RPC service

rpcDelay.timestampDelay

number

the number of seconds by which the timestamp observed is delayed compared to an external RPC service.

{
   "data": {
      "status": 1, 
      "sentryLastProcessedBlock": 19470079,
      "rpcLastProcessedBlock": 19470079,
      "rpcDelay": {
         "blockDelay": 0,
         "timestampDelay": 0
      }
   }
}

Last updated