Substreams for Base Network Now Available

StreamingFast
3 min readAug 27, 2024

--

StreamingFast is thrilled to announce enhanced support for Base through its Substreams integration! With the extended tracer integration, builders on Base will have access to a deeper data model, including internal calls, storage changes, balance changes in addition to any events.

About Base

The Base blockchain, incubated by Coinbase, is an Ethereum Layer 2 platform designed to offer a secure, scalable, and economical setting for decentralized applications (dapps). Base successfully completed The Graph’s Chain Integration Process (CIP) in June, activating indexing rewards and full network support — meaning developers building on Base benefit from fast and reliable decentralized data powered by The Graph’s global network of Indexers.

Utilizing the Optimism stack, Base employs roll-up technology to boost Ethereum’s efficiency by handling transactions on the Base Network and then bundling them into a single on-chain transaction on Ethereum’s mainnet. This approach lowers gas fees, improves transaction speed, and benefits from the security and decentralization advantages of the Ethereum mainnet.

About Substreams

Built by StreamingFast, a core developer of The Graph, Substreams is a powerful indexing technology handling historical and real-time processing of on-chain data in a variety of ways: subgraphs, SQL, or direct gRPC streaming.

With Substreams you can benefit from the following:

  • Parallelization: creates super short indexing times, processing entire chains within hours.
  • Cursor management: if the connection is interrupted, you can start again exactly at the latest consumed block.
  • Richer data model: easily access events, calls or balance changes.
  • Composability: build aggregated streams in a modular fashion to extract complexities from raw data.

Access a richer data model in your subgraph
Substreams can power your subgraph, transforming it into a Substreams-powered subgraph (SpS). This not only improves indexing times but also provides access to a more comprehensive data model.

With a Base Substreams-powered subgraph, you gain visibility into internal calls and balance changes within your AssemblyScript code. This allows you to create even more powerful dapps within The Graph ecosystem.

Getting Started

To begin, install the Substreams CLI, which enables you to set up a new project and run your initial Substreams. After that, obtain an authentication token from The Graph Market.

The Substreams CLI provides the substreams init command, allowing you to create a fully functional Substreams project. You can choose to process the data using either an SQL database (evm-sql option) or a subgraph (evm-subgraph option).

For detailed instructions, check out our EVM-based getting started tutorial. If you have any questions or suggestions, please do not hesitate to contact us on Discord.

--

--

StreamingFast

StreamingFast is a protocol infrastructure company that provides a massively scalable architecture for streaming blockchain data.