Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.15 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.15 KB

Open in Gitpod

All ERC20 Transfers on Base

This squid scrapes all ERC20 contract deployments on Base and gets their Transfer events. See more examples of requesting data with squids on the showcase page of SQD documentation.

Dependencies: Node.js, Docker, Git.

Quickstart

# 0. Install @subsquid/cli a.k.a. the sqd command globally
npm i -g @subsquid/cli

# 1. Retrieve the template
sqd init base-transfers-erc20 -t https://github.com/subsquid-labs/base-transfers-erc20
cd base-transfers-erc20

# 2. Install dependencies
npm ci

# 3. Start a Postgres database container and detach
sqd up

# 4. Build and start the processor
sqd process

# 5. The command above will block the terminal
#    being busy with fetching the chain data, 
#    transforming and storing it in the target database.
#
#    To start the graphql server open the separate terminal
#    and run
sqd serve

A GraphiQL playground will be available at localhost:4350/graphql.