Skip to main content
GET
/
blocks
/
{hashOrNumber}
Get Block by Hash or Number
curl --request GET \
  --url https://indexer.mainnet.incentiv.io/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

Block details.

hash
string
required

Unique hash that identifies the block.

number
integer
required

Block number in the blockchain.

timestamp
integer
required

UNIX timestamp of when the block was mined.

gasUsed
string
required

Total gas used in the block.

gasLimit
string
required

Total gas limit of the block.

baseFeePerGas
string
required

Base fee per gas used, introduced in EIP-1559.

miner
string
required

Address of the miner who mined the block.

txCount
integer
required

Number of transactions included in the block.

userOpCount
integer
required

Number of user operations (AA) in the block.