PerformanceBlog
Tempo MCP serverGive agents search and read tools for Tempo docs
Skip to content
LogoLogo

Blocks

The ordered batches of transactions making up the chain.

List blocks

GET/v1/blocks

List the ordered batches of transactions that make up Tempo.

Query Parameters

chainId

Which Tempo network to query. Use the alias mainnet or testnet, or a numeric chain id. Defaults to mainnet when omitted.

cursor
string

Opaque keyset cursor from a previous response (nextCursor); pass it back verbatim to fetch the next page. Omit for the first (head) page.

ExampleWzIzNDU2Nzg5LDBd
limit
integer·min 5·max 200·default 10

How many items to return per page (5–200, default 10).

Example10
order
string·default desc

Sort order: desc for descending (the default), or asc for ascending.

Values
ascdesc
Exampledesc
page
integer·min 1·max 9007199254740991

Page number, 1-indexed (positional pagination for page-numbered access; page=1 is the head page). Mutually exclusive with cursor, and page × limit must be at most 10000 rows — use cursor pagination for deeper traversal. Pages are positional, so rows arriving at the head of a live feed can shift page contents.

Example1

Responses

Get a block by selector

GET/v1/blocks/{block}

Get one block by tag, number, hash, or timestamp selector.

Path Parameters

blockRequired

Block selector: latest, finalized, a decimal or hex block number, a 32-byte block hash, or an ISO 8601 timestamp.

Query Parameters

chainId

Which Tempo network to query. Use the alias mainnet or testnet, or a numeric chain id. Defaults to mainnet when omitted.

Responses