tesla809 / evm-logs-example

EVM logs indexing example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open in Gitpod

USDC transfers indexing squid

This example squid indexes USDC transfers by tracking the historical Transfer(address,address,uint256) logs emitted by the USDC contract on the Ethereum Mainnet. For an extensive reference of Squid SDK and the Subsquid ecosystem, go to the docs.

One can use this example as a template for scaffolding a new squid project with sqd init:

sqd init my-new-squid --template https://github.com/subsquid-labs/evm-logs-example

Prerequisites

Running

Navigate to the example folder.

npm ci
sqd build
# start the database
sqd up
# starts a long-running ETL and blocks the terminal
sqd process

# starts the GraphQL API server at localhost:4350/graphql
sqd serve

About

EVM logs indexing example


Languages

Language:TypeScript 92.4%Language:JavaScript 5.9%Language:Makefile 1.7%