Parameters
string
required
The chain’s slug, such as
ethereum. Takes the same 21 values as Blocks. Polygon is matic, not polygon.Response
The response is a single object, with nodata array and no pagination.
string
The chain’s slug.
integer
Number of the latest block. Blocks dropped in a reorganization don’t count.
integer
Time of that block, in Unix seconds.
integer
Seconds between the current time and
timestamp. Compare it with the chain’s block time: a lag much longer than a few blocks means the data is behind.How the data behaves
- It moves every block. Responses carry
Cache-Control: public, max-age=2. - Lag includes block time.
head_lag_secondscounts from the block’s timestamp, so it’s above zero even when Goldsky has the chain’s newest block. It’s never below zero.
Errors
This endpoint returns the same errors as the other feeds. An unsupported chain returns400 BAD_REQUEST, and error.message lists the supported slugs.