subsquid-labs / showcase00-analyzing-a-large-number-of-wallets

Captures transactions involving any BSC accounts from a list of 1.4M addresses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Showcase squid 00: activity of 1.4M wallets

This squid captures all Binance Smart Chain transactions involving accounts that interacted with the Pancakeswap v2 Router contract between blocks 28M and 30M, a total of about 1.4M addresses. The list of addresses is saved at assets/allWallets; it was retrieved by an ad-hoc squid located at the wallet-list-maker folder.

See more examples of requesting data with squids on the showcase page of Subsquid documentation.

Dependencies: Node.js, Docker.

Quickstart

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

# 1. Retrieve the template
sqd init showcase00 -t https://github.com/subsquid-labs/showcase00-analyzing-a-large-number-of-wallets
cd showcase00

# 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.

About

Captures transactions involving any BSC accounts from a list of 1.4M addresses

License:MIT License


Languages

Language:TypeScript 91.3%Language:JavaScript 8.7%