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.
Body
Data query to filter and retrieve finalized blocks. Request body may be gzipped (Content-Encoding: gzip).
The type of blockchain data (fixed to Tron for this API).
tron The block number to start fetching from (inclusive).
The block number to fetch up to (inclusive). Optional; if omitted, streams until dataset height or timeout.
Expected hash of the parent of the first requested block.
If true, includes blocks with no matching data in the response.
Field selector for data items to retrieve.
Transaction data requests. Matches transactions by contract type.
Native TRX transfer requests (TransferContract). Addresses are 41-prefixed lowercase hex.
TRC-10 asset transfer requests (TransferAssetContract).
Smart-contract call requests (TriggerSmartContract). Covers TRC-20 and all other contract interactions.
Log data requests (TVM event logs).
Internal transaction data requests.
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.