Utility
Get block heights
Commonly used to get all the block heights within a particular date range. Useful for rendering a display where you sort blocks by day.
GET
/
v1
/
{chainName}
/
block_v2
/
{startDate}
/
{endDate}
/
Credit Cost: 1 per call.
Processing: Realtime
Processing: Realtime
Path Parameters
chainName
string
requiredThe chain name eg: eth-mainnet
.
startDate
string
requiredThe start date in YYYY-MM-DD format.
endDate
string
requiredThe end date in YYYY-MM-DD format.
Query Parameters
page-size
integer
Number of items per page. Omitting this parameter defaults to 100.
page-number
integer
0-indexed page number to begin pagination.
Response
200 - application/json
updated_at
string
The timestamp when the response was generated. Useful to show data staleness to users.
chain_id
integer
The requested chain ID eg: 1
.
chain_name
string
The requested chain name eg: eth-mainnet
.
items
object[]
List of response items.
pagination
object
Pagination metadata.