v1

latestOpenAPI 3.1.02026-07-266641.0 KB

Stream Finalized Blocks

Streams only finalized blocks matching the provided data query (never returns a 409 response). Query structure is identical to that of the /stream endpoint. Required request headers: Content-Type: application/json; optional request headers: Accept-Encoding: gzip, Content-Encoding: gzip.

post/finalized-stream

Request body

type'tron' required

The type of blockchain data (fixed to Tron for this API).

fromBlockinteger required

The block number to start fetching from (inclusive).

toBlockinteger

The block number to fetch up to (inclusive). Optional; if omitted, streams until dataset height or timeout.

parentBlockHashstring

Expected hash of the parent of the first requested block.

includeAllBlocksboolean

If true, includes blocks with no matching data in the response.

Response

A stream of finalized blocks in JSON lines format, optionally gzipped. Can be empty if the data query has a bounded range and all blocks in the range have been skipped.