### Quickstart Example Source: https://docs.sqd.dev/en/data/evm/celo-alfajores-testnet#content-area A cURL command to quickly start streaming EVM data from the Celo Alfajores Testnet. ```APIDOC ## Quick start ### Method `POST` ### Endpoint `https://portal.sqd.dev/datasets/celo-alfajores-testnet/stream` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ### Description This example demonstrates how to fetch block and transaction data from block 0 to 100 for the Celo Alfajores Testnet. You can customize the `fromBlock`, `toBlock`, and `fields` to suit your needs. ``` -------------------------------- ### Clone Gravatar Squid Example Source: https://docs.sqd.dev/en/sdk/squid-sdk/resources/migrate/migrate-subgraph Clone the example Gravatar squid from the GitHub repository to get started quickly. ```bash git clone https://github.com/subsquid-labs/gravatar-squid.git ``` -------------------------------- ### Stream Quickstart Example Source: https://docs.sqd.dev/en/data/evm/bitfinity-mainnet#schema A cURL example demonstrating how to stream data from Bitfinity Mainnet using the Portal API. ```APIDOC curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/bitfinity-mainnet/stream' \ -H 'Content-Type: application/json' \ -d '{ \ "type": "evm", \ "fromBlock": 0, \ "toBlock": 100, \ "fields": { \ "block": { "number": true, "timestamp": true }, \ "transaction": { "hash": true, "from": true, "to": true, "value": true } \ }, \ "transactions": [{} \ }' ``` -------------------------------- ### Stream Blocks Quickstart Source: https://docs.sqd.dev/en/data/substrate/vara-testnet#endpoint A quick start example using curl to stream blocks from the Vara Testnet. ```APIDOC ## POST /datasets/vara-testnet/stream ### Description Streams blocks from the Vara Testnet with specified parameters. ### Method POST ### Endpoint https://portal.sqd.dev/datasets/vara-testnet/stream ### Request Body - **type** (string) - Required - Type of the data source, e.g., "substrate". - **fromBlock** (integer) - Required - The starting block number. - **toBlock** (integer) - Required - The ending block number. - **fields** (object) - Required - Specifies which fields to include in the response. - **block** (object) - Optional - Fields related to the block. - **number** (boolean) - Include block number. - **timestamp** (boolean) - Include block timestamp. - **event** (object) - Optional - Fields related to events. - **name** (boolean) - Include event name. - **args** (boolean) - Include event arguments. - **events** (array) - Optional - Filters for specific events. ### Request Example ```json { "type": "substrate", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "event": { "name": true, "args": true } }, "events": [{}] } ``` ``` -------------------------------- ### Quick Start Example Source: https://docs.sqd.dev/en/data/solana/solana-mainnet#reference A `curl` example demonstrating how to stream Solana data from the Portal API. ```APIDOC ## Quick Start Example ### Description This example shows how to initiate a data stream for Solana Mainnet using `curl`. It specifies the data range, desired fields, and instruction filters. ### Method `POST` ### Endpoint `https://portal.sqd.dev/datasets/solana-mainnet/stream` ### Request Body ```json { "type": "solana", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "instruction": { "programId": true, "data": true } }, "instructions": [{}] } ``` ``` -------------------------------- ### Stream Data Quickstart Source: https://docs.sqd.dev/en/data/evm/neon-mainnet#reference A quick start example using curl to stream data from the Neon Mainnet. ```APIDOC ## Stream Data Quickstart ### Method POST ### Endpoint ``` https://portal.sqd.dev/datasets/neon-mainnet/stream ``` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ### Description This example demonstrates how to initiate a data stream from the Neon Mainnet. It specifies the data type as 'evm', a block range, and the desired fields for blocks and transactions. An empty object `{}` in the `transactions` array indicates that all transactions within the specified range should be included. ``` -------------------------------- ### Stream Quickstart Example Source: https://docs.sqd.dev/en/data/evm/ethereum-sepolia#reference A cURL example demonstrating how to stream EVM data from Ethereum Sepolia. ```APIDOC ## Stream Data ### Method POST ### Endpoint https://portal.sqd.dev/datasets/ethereum-sepolia/stream ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ### Request Example ```bash curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/ethereum-sepolia/stream' \ -H 'Content-Type: application/json' \ -d '{ "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] }' ``` ``` -------------------------------- ### Stream Data Quickstart Source: https://docs.sqd.dev/en/data/evm/neox-testnet#content-area Quick start example using curl to stream EVM data from the neox-testnet. ```APIDOC ## POST /datasets/neox-testnet/stream ### Description Streams EVM data from the neox-testnet within a specified block range, with customizable fields and transaction filters. ### Method POST ### Endpoint https://portal.sqd.dev/datasets/neox-testnet/stream ### Request Body - **type** (string) - Required - Type of data to stream (e.g., "evm") - **fromBlock** (integer) - Required - The starting block number. - **toBlock** (integer) - Required - The ending block number. - **fields** (object) - Optional - Specifies which fields to include in the response. - **block** (object) - Optional - Fields related to blocks. - **number** (boolean) - Optional - Include block number. - **timestamp** (boolean) - Optional - Include block timestamp. - **transaction** (object) - Optional - Fields related to transactions. - **hash** (boolean) - Optional - Include transaction hash. - **from** (boolean) - Optional - Include transaction sender address. - **to** (boolean) - Optional - Include transaction receiver address. - **value** (boolean) - Optional - Include transaction value. - **transactions** (array) - Optional - Filters for specific transactions. - (object) - Represents a transaction filter. ### Request Example ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ``` -------------------------------- ### Stream Quickstart Example Source: https://docs.sqd.dev/en/data/evm/ethereum-mainnet#endpoint A cURL example demonstrating how to stream data from the Ethereum Mainnet using the Portal API. ```APIDOC ## Stream Quickstart Example ### Description This example shows how to initiate a data stream for Ethereum Mainnet, specifying block and transaction fields. ### Method `POST` ### Endpoint `https://portal.sqd.dev/datasets/ethereum-mainnet/stream` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ``` -------------------------------- ### Stream Quickstart Source: https://docs.sqd.dev/en/data/evm/linea-mainnet#endpoint A quick start example using curl to stream data from the Linea Mainnet endpoint. ```APIDOC ## Stream Quickstart ### Description This example demonstrates how to stream data from the Linea Mainnet endpoint using curl. It specifies the data types and fields to retrieve. ### Method `POST` ### Endpoint `https://portal.sqd.dev/datasets/linea-mainnet/stream` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ### Request Example ```bash curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/linea-mainnet/stream' \ -H 'Content-Type: application/json' \ -d '{ "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] }' ``` ``` -------------------------------- ### Stream Quickstart Example Source: https://docs.sqd.dev/en/data/evm/bob-mainnet#reference A cURL example demonstrating how to stream EVM data from BOB Mainnet using the Portal API. ```APIDOC ## Quick start ```curl curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/bob-mainnet/stream' \ -H 'Content-Type: application/json' \ -d '{ \ "type": "evm", \ "fromBlock": 0, \ "toBlock": 100, \ "fields": { \ "block": { "number": true, "timestamp": true }, \ "transaction": { "hash": true, "from": true, "to": true, "value": true } \ }, \ "transactions": [{} \ }' ``` ``` -------------------------------- ### Clone Gravatar Squid Repository Source: https://docs.sqd.dev/en/sdk/squid-sdk/resources/migrate/migrate-subgraph#2-fetch-the-template Clone the example Gravatar squid from the GitHub repository to get started quickly. ```bash git clone https://github.com/subsquid-labs/gravatar-squid.git ``` -------------------------------- ### Stream Quickstart Example Source: https://docs.sqd.dev/en/data/evm/ethereum-hoodi#content-area A cURL example demonstrating how to stream data from the Ethereum Hoodi network using the Portal API. ```APIDOC ```bash curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/ethereum-hoodi/stream' \ -H 'Content-Type: application/json' \ -d '{ \ "type": "evm", \ "fromBlock": 0, \ "toBlock": 100, \ "fields": { \ "block": { "number": true, "timestamp": true }, \ "transaction": { "hash": true, "from": true, "to": true, "value": true } \ }, \ "transactions": [{} \ }' ``` ``` -------------------------------- ### Quickstart: Streaming Data from 0g Testnet Source: https://docs.sqd.dev/en/data/evm/0g-testnet This example demonstrates how to stream EVM data from the 0g Testnet using a POST request to the Portal API. It includes basic configuration for blocks and transactions. ```APIDOC ## POST /datasets/0g-testnet/stream ### Description Streams EVM data from the 0g Testnet. Allows specifying block ranges and desired fields. ### Method POST ### Endpoint https://portal.sqd.dev/datasets/0g-testnet/stream ### Request Body - **type** (string) - Required - Type of data to stream (e.g., "evm") - **fromBlock** (number) - Required - The starting block number - **toBlock** (number) - Required - The ending block number - **fields** (object) - Optional - Specifies which fields to include for blocks and transactions - **block** (object) - Optional - Fields for block data - **number** (boolean) - Include block number - **timestamp** (boolean) - Include block timestamp - **transaction** (object) - Optional - Fields for transaction data - **hash** (boolean) - Include transaction hash - **from** (boolean) - Include transaction sender address - **to** (boolean) - Include transaction receiver address - **value** (boolean) - Include transaction value - **transactions** (array) - Optional - Filters for specific transactions (e.g., by sender/receiver) ### Request Example ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ``` -------------------------------- ### Zora Mainnet Stream Quickstart Source: https://docs.sqd.dev/en/data/evm/zora-mainnet A quick start example using curl to stream data from Zora Mainnet. ```APIDOC ## POST /datasets/zora-mainnet/stream ### Description Streams data from Zora Mainnet within a specified block range. ### Method POST ### Endpoint `https://portal.sqd.dev/datasets/zora-mainnet/stream` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ### Request Example ```bash curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/zora-mainnet/stream' \ -H 'Content-Type: application/json' \ -d '{ \ "type": "evm", \ "fromBlock": 0, \ "toBlock": 100, \ "fields": { \ "block": { "number": true, "timestamp": true }, \ "transaction": { "hash": true, "from": true, "to": true, "value": true } \ }, \ "transactions": [{}] \ }' ``` ``` -------------------------------- ### Quick Start Example Source: https://docs.sqd.dev/en/data/evm/ethereum-hoodi#endpoint A cURL example demonstrating how to stream data from the Ethereum Hoodi network using the Portal API. ```APIDOC ## Quick start ```bash curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/ethereum-hoodi/stream' \ -H 'Content-Type: application/json' \ -d '{ \ "type": "evm", \ "fromBlock": 0, \ "toBlock": 100, \ "fields": { \ "block": { "number": true, "timestamp": true }, \ "transaction": { "hash": true, "from": true, "to": true, "value": true } \ }, \ "transactions": [{} \ }' ``` ``` -------------------------------- ### Stream Data Quickstart Source: https://docs.sqd.dev/en/data/evm/unichain-mainnet A quick start example using curl to stream EVM data from Unichain Mainnet. ```APIDOC ## Quick start ```bash curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/unichain-mainnet/stream' \ -H 'Content-Type: application/json' \ -d '{ \ "type": "evm", \ "fromBlock": 0, \ "toBlock": 100, \ "fields": { \ "block": { "number": true, "timestamp": true }, \ "transaction": { "hash": true, "from": true, "to": true, "value": true } \ }, \ "transactions": [{} \ }' ``` ``` -------------------------------- ### Stream Data Quickstart Source: https://docs.sqd.dev/en/data/evm/shiden-mainnet#content-area A quick start example using curl to stream EVM data from Shiden Mainnet. ```APIDOC ## Stream Data Quickstart ### Method `POST` ### Endpoint `https://portal.sqd.dev/datasets/shiden-mainnet/stream` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ### Description This example demonstrates how to fetch a stream of EVM data, including block and transaction details, from a specified block range. ``` -------------------------------- ### Quickstart Streaming Example Source: https://docs.sqd.dev/en/data/evm/xlayer-testnet A cURL example demonstrating how to stream X Layer Testnet data using the Portal API. ```APIDOC ## Quickstart Streaming Example ### Description This example shows how to initiate a data stream for the X Layer Testnet using the Portal API. ### Method `POST` ### Endpoint `https://portal.sqd.dev/datasets/xlayer-testnet/stream` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ``` -------------------------------- ### Stream Quickstart Example Source: https://docs.sqd.dev/en/data/evm/opbnb-mainnet#schema A cURL example demonstrating how to stream data from the opbnb-mainnet network using the Portal API. ```APIDOC ## Stream Quickstart ### Method POST ### Endpoint https://portal.sqd.dev/datasets/opbnb-mainnet/stream ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ### Request Example ```bash curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/opbnb-mainnet/stream' \ -H 'Content-Type: application/json' \ -d '{ "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] }' ``` ``` -------------------------------- ### Plume Testnet Stream Quickstart Source: https://docs.sqd.dev/en/data/evm/plume-testnet#reference A quick start example using curl to stream data from the Plume Testnet. ```APIDOC ## Quick start ### Stream ```bash curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/plume-testnet/stream' \ -H 'Content-Type: application/json' \ -d '{ \ "type": "evm", \ "fromBlock": 0, \ "toBlock": 100, \ "fields": { \ "block": { "number": true, "timestamp": true }, \ "transaction": { "hash": true, "from": true, "to": true, "value": true } \ }, \ "transactions": [{} \ }' ``` ### Description This example demonstrates how to initiate a data stream from the Plume Testnet, specifying block range, desired fields, and transaction filters. For more comprehensive examples, refer to the Pipes SDK and Squid SDK documentation. ``` -------------------------------- ### Naka Chain Stream Quickstart Source: https://docs.sqd.dev/en/data/evm/nakachain#content-area A quick start example using curl to stream data from Naka Chain. ```APIDOC ## POST /datasets/nakachain/stream ### Description Streams data from the Naka Chain network, allowing for specific data retrieval based on block range and transaction details. ### Method POST ### Endpoint https://portal.sqd.dev/datasets/nakachain/stream ### Request Body - **type** (string) - Required - Specifies the data type, e.g., "evm". - **fromBlock** (number) - Required - The starting block number. - **toBlock** (number) - Required - The ending block number. - **fields** (object) - Optional - Defines which fields to include in the response for blocks and transactions. - **block** (object) - Optional - Fields for block data. - **number** (boolean) - Include block number. - **timestamp** (boolean) - Include block timestamp. - **transaction** (object) - Optional - Fields for transaction data. - **hash** (boolean) - Include transaction hash. - **from** (boolean) - Include transaction sender address. - **to** (boolean) - Include transaction receiver address. - **value** (boolean) - Include transaction value. - **transactions** (array) - Optional - Filters for specific transactions. - (object) - Represents a transaction filter. ### Request Example ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ``` -------------------------------- ### Quick Start Example Source: https://docs.sqd.dev/en/data/evm/polygon-zkevm-mainnet#endpoint A cURL example demonstrating how to stream data from the Polygon zkEVM Mainnet using the Portal API. ```APIDOC ## Quick start ```bash curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/polygon-zkevm-mainnet/stream' \ -H 'Content-Type: application/json' \ -d '{ \ "type": "evm", \ "fromBlock": 0, \ "toBlock": 100, \ "fields": { \ "block": { "number": true, "timestamp": true }, \ "transaction": { "hash": true, "from": true, "to": true, "value": true } \ }, \ "transactions": [{} \ }' ``` ``` -------------------------------- ### Stream Data Quickstart Source: https://docs.sqd.dev/en/data/evm/ink-mainnet#content-area A quick start example using curl to stream EVM data from the ink-mainnet dataset. ```APIDOC ## Stream Data Quickstart ### Method `POST` ### Endpoint `https://portal.sqd.dev/datasets/ink-mainnet/stream` ### Description This example demonstrates how to stream EVM data, including block and transaction details, from the ink-mainnet dataset for a specified block range. ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ### Request Example ```bash curl --compressed -X POST \ 'https://portal.sqd.dev/datasets/ink-mainnet/stream' \ -H 'Content-Type: application/json' \ -d '{ \ "type": "evm", \ "fromBlock": 0, \ "toBlock": 100, \ "fields": { \ "block": { "number": true, "timestamp": true }, \ "transaction": { "hash": true, "from": true, "to": true, "value": true } \ }, \ "transactions": [{}] \ }' ``` ``` -------------------------------- ### Quick Start Example (cURL) Source: https://docs.sqd.dev/en/portal/evm/api#error-handling A cURL example demonstrating how to stream Ethereum mainnet data. ```APIDOC curl --compressed -X POST 'https://portal.sqd.dev/datasets/ethereum-mainnet/stream' \ -H 'Content-Type: application/json' \ -d '{ \ "type": "evm", \ "fromBlock": 18000000, \ "toBlock": 18001000, \ "fields": { \ "block": { "number": true, "timestamp": true }, \ "log": { "address": true, "topics": true, "data": true } \ } \ }' ``` -------------------------------- ### Stream Quickstart Example Source: https://docs.sqd.dev/en/data/evm/unichain-sepolia#reference A cURL example demonstrating how to stream EVM data from Unichain Sepolia, specifying block ranges and desired fields. ```APIDOC ## POST /datasets/unichain-sepolia/stream ### Description Streams EVM data from the Unichain Sepolia network. Allows specifying block range and fields to retrieve. ### Method POST ### Endpoint `https://portal.sqd.dev/datasets/unichain-sepolia/stream` ### Request Body - **type** (string) - Required - Type of data to stream (e.g., "evm") - **fromBlock** (number) - Required - The starting block number - **toBlock** (number) - Required - The ending block number - **fields** (object) - Optional - Specifies which fields to include in the response - **block** (object) - Optional - Fields related to blocks - **number** (boolean) - Optional - Include block number - **timestamp** (boolean) - Optional - Include block timestamp - **transaction** (object) - Optional - Fields related to transactions - **hash** (boolean) - Optional - Include transaction hash - **from** (boolean) - Optional - Include transaction sender address - **to** (boolean) - Optional - Include transaction receiver address - **value** (boolean) - Optional - Include transaction value - **transactions** (array) - Optional - Filters for specific transactions (e.g., `[{}]` for all) ### Request Example ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ``` -------------------------------- ### Stream Data Quickstart Source: https://docs.sqd.dev/en/data/evm/immutable-zkevm-mainnet#schema A quick start example using curl to stream data from the Immutable zkEVM Mainnet. ```APIDOC ## Stream Data Quickstart ### Description This example demonstrates how to stream EVM data from the Immutable zkEVM Mainnet, specifying block ranges and desired fields. ### Method `POST` ### Endpoint `https://portal.sqd.dev/datasets/immutable-zkevm-mainnet/stream` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ``` -------------------------------- ### Stream Quickstart Example Source: https://docs.sqd.dev/en/data/evm/neon-mainnet#endpoint Example using curl to stream data from the Neon EVM Mainnet. ```APIDOC ## Stream Quickstart ### Description Example using curl to stream data from the Neon EVM Mainnet. ### Method `POST` ### Endpoint `https://portal.sqd.dev/datasets/neon-mainnet/stream` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ``` -------------------------------- ### Stream Data Quickstart Source: https://docs.sqd.dev/en/data/evm/etherlink-testnet#endpoint A quick start example using curl to stream EVM data from the Etherlink Testnet. ```APIDOC ## Stream Data Example ### Method `POST` ### Endpoint `https://portal.sqd.dev/datasets/etherlink-testnet/stream` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ### Description This example demonstrates how to fetch EVM data, including block and transaction details, for a specified block range using the stream endpoint. ``` -------------------------------- ### Stream Quickstart Example Source: https://docs.sqd.dev/en/data/evm/hyperevm-testnet#reference A cURL example demonstrating how to stream EVM data from the HyperEVM Testnet using the Portal API. ```APIDOC ## Stream Quickstart ### Method `POST` ### Endpoint `https://portal.sqd.dev/datasets/hyperliquid-testnet/stream` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ``` -------------------------------- ### Celo Mainnet Stream Quickstart Source: https://docs.sqd.dev/en/data/evm/celo-mainnet A quick start example using curl to stream data from Celo Mainnet. ```APIDOC ## POST /datasets/celo-mainnet/stream ### Description Streams data from the Celo Mainnet dataset. Allows specifying block ranges and desired fields for transactions and blocks. ### Method POST ### Endpoint https://portal.sqd.dev/datasets/celo-mainnet/stream ### Request Body - **type** (string) - Required - Type of data to stream, e.g., "evm". - **fromBlock** (number) - Required - The starting block number. - **toBlock** (number) - Required - The ending block number. - **fields** (object) - Optional - Specifies which fields to include for blocks and transactions. - **block** (object) - Optional - Fields for block data. - **number** (boolean) - Include block number. - **timestamp** (boolean) - Include block timestamp. - **transaction** (object) - Optional - Fields for transaction data. - **hash** (boolean) - Include transaction hash. - **from** (boolean) - Include transaction sender address. - **to** (boolean) - Include transaction receiver address. - **value** (boolean) - Include transaction value. - **transactions** (array) - Optional - Filters for transactions. - (object) - Each object can specify transaction criteria. ### Request Example ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ### Response #### Success Response (200) Returns a stream of data matching the specified criteria. ``` -------------------------------- ### Celo Mainnet Stream Quickstart Source: https://docs.sqd.dev/en/data/evm/celo-mainnet#content-area A quick start example using curl to stream data from Celo Mainnet. ```APIDOC ## Quick start ### Description This example demonstrates how to initiate a data stream from Celo Mainnet using curl. ### Method POST ### Endpoint `https://portal.sqd.dev/datasets/celo-mainnet/stream` ### Request Body ```json { "type": "evm", "fromBlock": 0, "toBlock": 100, "fields": { "block": { "number": true, "timestamp": true }, "transaction": { "hash": true, "from": true, "to": true, "value": true } }, "transactions": [{}] } ``` ```