GET
/
{chainName}
/
v1
/
blocks
/
{startDate}
/
{endDate}
curl --request GET \
  --url https://data-api.cloud.ormi.dev/{chainName}/v1/blocks/{startDate}/{endDate}
{
  "count": 123,
  "cursor": "<string>",
  "items": [
    {
      "extra_data": "<string>",
      "gas_limit": "<string>",
      "gas_used": "<string>",
      "hash": "<string>",
      "miner": "<string>",
      "number": 123,
      "parent_hash": "<string>",
      "timestamp": "2023-11-07T05:31:56Z"
    }
  ]
}

Path Parameters

startDate
string
required

The start date in YYYY-MM-DD format.

endDate
string
required

The end date in YYYY-MM-DD format.

chainName
string
required

Name of the blockchain (e.g., ethereum, polygon, bsc)

Query Parameters

cursor
string

The cursor returned in previous response (for getting the next page).

limit
integer | null
default:100

Number of records to fetch

Required range: 1 <= x <= 100

Response

200 - application/json

OK

The response is of type object.