Logo
Covalent API Documentation

getBlock

GET https://api.covalenthq.com/v1/:chainName/block_v2/:blockHeight/

Returns: BlockResponse

{
  "updated_at" : "{{DATETIME}}",
  "chain_id" : "{{INTEGER}}",
  "chain_name" : "{{STRING}}",
  "items" : [ {
    "signed_at" : "{{DATETIME}}",
    "height" : "{{INTEGER}}"
  } ]
}

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X GET 'https://api.covalenthq.com/v1/:chainName/block_v2/:blockHeight/' -H 'Content-Type: application/json'

ENDPOINTS