ethereum-mainnet.
A stream request has two parts:
- The URL selects the dataset and operation.
- The JSON body selects the request type, block range, fields, and filters.
type: "evm", a required fromBlock, an optional
toBlock, and the fields or records to return. Solana requests use the same
URL structure with the Solana request model.
Stream response bodies use JSON Lines. Each line is one JSON object for one
returned block. A client can read and process each line as it arrives.
Do not select the parser from the Content-Type header alone. The SQD-hosted
endpoint can use different content types for archival and recent data while
returning the same line-delimited JSON body.
How Portal serves data
See how one stream can read finalized history and recent blocks.
Finalized and recent data
Choose between standard and finalized streams.
Blockchain forks
Detect a changed chain and recover from HTTP 409.
First query
Choose a runnable query for EVM, Solana, Bitcoin, Hyperliquid, Tron, or
Substrate data.