Logo
Covalent API Documentation

getBlockHeights

GET https://api.covalenthq.com/v1/:chainName/block_v2/:startDate/:endDate/?page-size=&page-number=

Returns: BlockHeightsResponse

{
  "updated_at" : "{{DATETIME}}",
  "chain_id" : "{{INTEGER}}",
  "chain_name" : "{{STRING}}",
  "items" : [ {
    "signed_at" : "{{DATETIME}}",
    "height" : "{{INTEGER}}"
  } ],
  "pagination" : {
    "has_more" : "{{BOOLEAN}}",
    "page_number" : "{{INTEGER}}",
    "page_size" : "{{INTEGER}}",
    "total_count" : "{{INTEGER}}"
  }
}

 

Body PARAM

Key Datatype Required Description 
page-size
null
page-number
null



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X GET 'https://api.covalenthq.com/v1/:chainName/block_v2/:startDate/:endDate/?page-size=&page-number=?page-size=&page-number=' -H 'Content-Type: application/json'

ENDPOINTS