Skip to main content
GET
/
blocks
List Blocks
curl --request GET \
  --url https://indexer.mainnet.incentiv.io/api/blocks
{
  "total": 123,
  "pageable": 123,
  "items": [
    {
      "hash": "<string>",
      "number": 123,
      "timestamp": 123,
      "gasUsed": "<string>",
      "gasLimit": "<string>",
      "baseFeePerGas": "<string>",
      "miner": "<string>",
      "txCount": 123,
      "userOpCount": 123
    }
  ]
}

Query Parameters

fromTimestamp
integer<int64>

UNIX timestamp (seconds) marking the start of the time range to filter blocks.

toTimestamp
integer<int64>

UNIX timestamp (seconds) marking the end of the time range to filter blocks.

fromBlockNumber
integer

Start of the block number range.

toBlockNumber
integer

End of the block number range.

offset
integer

Offset for pagination. Use in combination with limit.

limit
integer

Maximum number of blocks to return in a single response. Recommended max: 100.

sort
string

Sorting order for returned blocks. Options: TIMESTAMP_ASC, TIMESTAMP_DESC, NUMBER_ASC, NUMBER_DESC.

Response

A list of block metadata entries.

total
integer
pageable
integer
items
object[]