Blocks

Fetch one block with its full native transaction objects. Use height 0 to inspect the genesis block.

GET/blocks/{id}

Parameters

idPath · required
Decimal height, without leading zeroes, up to 15 digits. Alternatively supply a 64-byte block hash with the 0x prefix.

Request · cURL + jq

curl -fsS 'https://api.qlattice.xyz/dev/v1/blocks/1' | jq '{number, gasUsed, gasLimit, transactionCount: (.transactions | length)}'

Example output · selected fields

{
  "number": "0x1",
  "gasUsed": "0x5208",
  "gasLimit": "0x1312d00",
  "transactionCount": 1
}

Response fields

number, hash, parentHashHex strings
Canonical height, this block’s hash and the parent hash.
timestamp, sizeHex quantities
Unix time in seconds and serialized size in bytes.
minerQ address
Recipient of the block fees.
gasUsed, gasLimit, baseFeePerGasHex quantities
Gas consumed, maximum block gas and base units per gas.
transactionsArray
Full transactions in block order. The genesis block can return an empty array.
stateRoot, transactionsRoot, receiptsRoot, withdrawalsRootHex strings
Commitments to the resulting state, transactions, receipts and withdrawals.
logsBloom, extraData, prevRandaoHex data
Block log filter, extra header bytes and randomness field.
withdrawalsArray
Withdrawal entries supplied by the execution client.
Transaction fields →