GET
/
blocks
List Blocks
curl --request GET \
  --url https://indexer.testnet.incentiv.net/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

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

toTimestamp
integer

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

200
application/json

A list of block metadata entries.

The response is of type object.