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
- Base URLhttps://api.covalenthq.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Changes
No recorded changes to this operation across all 3 revisions of this API.