Docs
Search⌘ K
  • Home
  • About The Graph
  • Supported Networks
  • Protocol Contracts
  • AI Tooling
  • Subgraphs
    • Substreams
      • Indexer Software
        • Gateway Software
          • Data Services
            • Resources

              Soneium Mainnet

              Subgraphs
              Subgraph Studio⁠
              Substreams (Extended EVM)
              Pinax Network⁠ • Data Nexus⁠
              Type
              mainnet
              Protocol
              ethereum
              Identifier
              soneium
              Chain ID
              eip155:1868
              Native Currency
              ETH
              Chain Docs
              https://soneium.org/en/docs⁠

              Indexing Data on Soneium

              Soneium is an Ethereum Layer 2 built on the OP Stack and part of the Optimism Superchain, developed by Sony Block Solutions Labs to bring creators, entertainment, and consumer apps onchain. The Graph can stream that onchain activity — DEX swaps, pools, and liquidity; lending and borrowing positions; token transfers and holder balances; and contract events — as real-time data with Substreams.

              Soneium is supported by The Graph with Substreams — a parallelized, real-time streaming engine for high-throughput use cases — via Pinax Network⁠ and Data Nexus⁠.

              Indexing Soneium with Substreams

              Substreams is a parallelized, real-time streaming engine for extracting and transforming blockchain data. Where a Subgraph indexes into a hosted GraphQL API, Substreams lets you consume high-throughput data directly or via 10+ supported sinks. Soneium is served with the extended EVM block model, so Substreams modules have access to full transaction, call, and event data. Modules are written in Rust and composed into reusable packages.

              Find an Existing Module on Substreams.dev

              Before writing any code, check the Substreams Registry⁠ for a package that already does what you need. The registry hosts community- and team-built modules — DEX trades, token transfers, contract events, and more — that you can run as-is or compose into your own pipeline. Search for the protocol or data you want on Soneium; if a module fits, you can consume its output directly or import it as a dependency in your own project.

              Develop Your Own Substreams Module

              If no existing module fits, you can build one. The Substreams Quick Start is the full walkthrough. In short:

              1. Install the Substreams CLI and get an API key from [Pinax Network](https://app.pinax.network/).
              2. Scaffold a project with substreams init and choose the EVM path, pointing it at your Soneium contract.
              3. Write your extraction and transformation logic in Rust, then run substreams build.
              4. Stream the output with substreams gui (or substreams run) to iterate, then publish your package to the Substreams Registry⁠ to reuse or share it.

              Guides

              10 min

              Subgraph quick start

              Kickstart your journey into subgraph development.

              12 min

              Graph Explorer

              Find and query existing blockchain data.

              5 min

              Studio Billing

              Optimize costs and manage billing efficiently.

              15 min

              Substreams quick start

              Stream high-speed data for real-time indexing.

              5 min

              Substreams.dev

              Access tutorials, templates, and documentation to build custom data modules.

              5 min

              Substreams Pricing

              Compare providers and pricing to consume Substreams data.

              The GraphStatusTestnetBrand AssetsForumSecurityPrivacy PolicyTerms of Service