<!-- Canonical: https://docs.linea.build/network/build/tools/data-indexers/pinax -->

> For the complete Linea documentation index, see [llms.txt](/llms.txt).
> Agents can fetch this page as Markdown at [https://docs.linea.build/network/build/tools/data-indexers/pinax.md](https://docs.linea.build/network/build/tools/data-indexers/pinax.md).

# Pinax

[Pinax](https://pinax.network/) provides Firehose, Substreams, and JSON-RPC endpoints for Linea Mainnet and Linea Sepolia. Pinax maintains the open source Firehose and Substreams stack alongside StreamingFast, and operates its own nodes for both networks.

## Stream blocks with Firehose

[Firehose](https://app.pinax.network/docs/firehose) streams full blocks over gRPC, including transactions, receipts, logs, call traces, and balance changes. Use it when an application needs the complete block payload rather than the subset a JSON-RPC node returns, or when it needs to process history faster than sequential RPC calls allow.

| Network | Endpoint |
| --- | --- |
| Linea Mainnet | `linea.firehose.pinax.network:443` |
| Linea Sepolia | `lineasepolia.firehose.pinax.network:443` |

Authenticate by passing an API key in the `X-Api-Key` header.

## Transform blocks with Substreams

[Substreams](https://app.pinax.network/docs/substreams) is a parallel indexing engine that runs on top of Firehose. Write modules in Rust, package them as an `.spkg` file, and run them on Pinax servers to transform raw blocks into the data model an application needs. Output can be written to PostgreSQL or ClickHouse, served over a stream, or consumed by a Graph Node as a subgraph data source.

| Network | Endpoint |
| --- | --- |
| Linea Mainnet | `linea.substreams.pinax.network:443` |
| Linea Sepolia | `lineasepolia.substreams.pinax.network:443` |

Set the API key in `SUBSTREAMS_API_KEY` before running the [Substreams CLI](https://docs.substreams.dev/).

## Query state with RPC

[Pinax RPC](https://app.pinax.network/docs/rpc) serves standard Ethereum JSON-RPC 2.0 from archive nodes, so historical state is queryable at any block rather than only at recent ones.

| Network | Endpoint |
| --- | --- |
| Linea Mainnet | `[https://linea.rpc.pinax.network](https://linea.rpc.pinax.network)` |
| Linea Sepolia | `[https://lineasepolia.rpc.pinax.network](https://lineasepolia.rpc.pinax.network)` |

## Get started

Create a key at [app.pinax.network](https://app.pinax.network/), then follow the [Pinax documentation](https://app.pinax.network/docs). Free and paid plans are listed on the [pricing page](https://pinax.network/en/pricing).
