check_subgraph_freshness
Verify subgraph freshness by measuring lag from chainhead before relying on current data, preventing stale responses.
Instructions
Report how far behind chainhead a subgraph is, by reading its _meta block. Worth calling before trusting any 'current' or 'latest' number, because a lagging subgraph returns stale data rather than an error — it succeeds, it is just answering about the past.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subgraph | Yes | Which subgraph to check |