Skip to content
TraceFast Docs

The latest block

See the latest blocks →

The most recent block the API serves, with its header and the totals of what it contains — transaction counts by outcome, gas, fees, value moved, withdrawals. It is the cheapest way to learn the current height before asking for anything at a block.

GET https://tracefast.xyz/api/v1/chains/1/blocks/latest

The method takes no parameters.

Access — an API key on the Enriched Data plan or higher (plans), or no key at all: pay per call with x402 at the same path on https://mpp.tracefast.xyz/api/v1, at the price its 402 states. As a tool for AI agents: get_latest_block on the MCP server. Stable — see stability.

chains/1 is a literal: the method serves Ethereum mainnet data. Other chain ids answer 404 chain_not_supported. Any query parameter is refused rather than ignored — blocks/latest?block=5 answers 400 bad_request with reason: unknown_parameter.

Response

200 application/json — the same body as one block:

{
  "data": {
    "chainId": 1,
    "number": 25948671,
    "hash": "0x56e9e0e22ded596de8c568530479c6cf6d9907c18a09a9e1a1a8944bb1034a18",
    "parentHash": "0x5d60540a6b608e07247c57b7cd2a381ce9ab807976fa82076b6401f864048858",
    "timestamp": 1789063571,
    "feeRecipient": "0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97",
    "stateRoot": "0xc1413013a321bb6aac68d03da9ed11699bff6ea0c5a249fdc8de60b4af265da5",
    "transactionsRoot": "0x2d83917d2dd62f5a4b6863cb61ee6f08ca747ef4d76fe58e0f5080460ae7222b",
    "receiptsRoot": "0x9d9b658b1dbeb78850c6a762eafee44ef7521bc88de759fc577c58d455eba7e6",
    "gasLimit": "60000000",
    "gasUsed": "35299803",
    "baseFeePerGas": "110037203",
    "blobGasUsed": "1572864",
    "excessBlobGas": "182965718",
    "txCount": 333,
    "successfulTxCount": 332,
    "failedTxCount": 1,
    "contractCreationCount": 0,
    "blobTxCount": 3,
    "logCount": 1366,
    "totalWithdrawalGwei": "282060393",
    "totalValueWei": "5960441659363695129",
    "burntFees": "3884291588571009",
    "totalGasFees": "19627190549127182",
    "totalTips": "15742898960556173",
    "difficulty": "0",
    "extraData": "0x546974616e2028746974616e6275696c6465722e78797a29",
    "ommersCount": 0
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1789063582504,
    "cached": false,
    "asOfBlock": 25948671,
    "docs": "https://docs.tracefast.xyz/api/block-latest"
  }
}

data.number is the height, and meta.asOfBlock equals it. The field reference — header, totals, and which totals can be absent — is on one block.

Reading it

  • The newest blocks carry fewer fields. In the example, withdrawalCount is absent although totalWithdrawalGwei is positive: the count is not stated yet for the newest blocks. Absent is "not stated", never zero. uniqueAddressCount and blobBaseFeeWei are absent for the same reason. Asking for the same block by height does not add them; older blocks carry all three.
  • "Latest" is the newest block the API serves, not necessarily the chain's head at the moment you ask. It follows the chain within seconds.
  • Two calls can disagree. A new block arrives about every 12 seconds, so take the height from this response and pass it to block-keyed methods rather than calling latest twice.
  • Not every block-keyed method reaches this height. Authorizations answer from a history that trails the head, and refuse a newer block with 422 block_not_available and the highest block they can answer — see data freshness.

Errors

This method has no errors of its own. Unknown parameters and the key check's 401/403/429 are the same for every method — see conventions and API keys.


Last updated 22 Oct 2026, 08:06 UTC · verified against TraceFast v1.0.261 · Markdown