get-block-heights

GET /v1/{chainName}/block_v2/{startDate}/{endDate}/

Returns all the block heights within a particular date range. Useful for rendering a display where you sort blocks by day.

Request

Path parameters

chainNamestring required

The chain name eg: eth-mainnet.

startDatestring required

The start date in YYYY-MM-DD format.

endDatestring required

The end date in YYYY-MM-DD format or latest for the latest block available.

Query parameters

page-sizeinteger

Number of items per page. Omitting this parameter defaults to 100.

page-numberinteger

0-indexed page number to begin pagination.

Response

Successful response

updated_atstring date-time

The timestamp when the response was generated. Useful to show data staleness to users.

chain_idinteger

The requested chain ID eg: 1.

chain_namestring

The requested chain name eg: eth-mainnet.

Changes

No recorded changes to this operation across all 3 revisions of this API.