GET
/
blocks
/
{hashOrNumber}
Get Block by Hash or Number
curl --request GET \
  --url https://indexer.testnet.incentiv.net/api/blocks/{hashOrNumber}
{
  "hash": "<string>",
  "number": 123,
  "timestamp": 123,
  "gasUsed": "<string>",
  "gasLimit": "<string>",
  "baseFeePerGas": "<string>",
  "miner": "<string>",
  "txCount": 123,
  "userOpCount": 123
}

Path Parameters

hashOrNumber
string
required

The block hash or block number to retrieve.

Response

200
application/json

Block details.

The response is of type object.