Skip to main content
This quickstart scaffolds the current EVM template, indexes ETH burn transactions, stores them in PostgreSQL, and exposes them through GraphQL.

Prerequisites

  • Node.js 20 or newer
  • Git
  • Docker with Compose
No data credentials are needed: the template streams data from a public SQD Network Portal dataset (see the EVM networks list).
1

Install the Squid CLI

The version output has the form @subsquid/cli/<version>.
2

Scaffold the current EVM template

The evm alias is maintained by the CLI. It currently retrieves subsquid-labs/squid-evm-template.
3

Build the project

The template defines build in commands.json. The command generates JavaScript in lib/ and stops on TypeScript errors.
4

Start PostgreSQL

This runs the template’s Docker Compose service with the connection settings from .env.
5

Run the processor and GraphQL server

The CLI starts the processor and GraphQL services declared in squid.yaml. The processor command applies pending database migrations before it starts.The template’s src/main.ts builds a data source with DataSourceBuilder from @subsquid/evm-stream, requesting transactions sent to the zero address:
src/main.ts
The run() call from @subsquid/batch-processor then drives the batch handler, which turns each transaction into a Burn entity and inserts the batch through ctx.store. The Portal stream covers real-time data as well, all the way to the unfinalized chain head — no additional endpoints are needed.
6

Query indexed data

Open http://localhost:4350/graphql and run:
Stop the CLI with Ctrl+C. Remove the local database container with:

What to change next