lag_status - Cosmos
lag_status. Monitor your Cosmos blockchain node's synchronization status
lag_status - Cosmos [Value: 20CU]
Retrieves node's synchronization status
Use cases
- Check if the node is lagging behind
- Monitor node synchronization status
- Verify the latest block height and time
Constraints
- May not provide granular sync details
- Network issues could misreport lag status
- Real-time data; results can change rapidly
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --location 'https://cosmos-hub.drpc.org' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "lag_status",
"params": [],
"id": 1
}'
Response
200
{
"jsonrpc": "2.0",
"result": {
"lagging": false,
"details": {
"latest_block_height": "20431584",
"latest_block_time": "2022-03-10T15:19:10.385Z",
"sync_status": "caught_up"
}
},
"id": 1
}
Request params
idinteger
jsonrpcstring
methodstring
Response
200
The result object indicating the lag status of the nodeResponse params
object
idinteger
jsonrpcstring
resultobject
object
laginteger
The difference between the current block height and the maximum peer height, indicating how many blocks the node is behind the most advanced peer.
current_heightstring
The current height of the system, representing the block height the node has processed.
max_peer_heightstring
The maximum block height observed among all connected peers.