Skip to content

A scalable SQL indexer for EVM compatible blockchains

License

Notifications You must be signed in to change notification settings

eabz/evm-indexer

Repository files navigation

EVM Blockchain Indexer

Scalable SQL indexer for EVM-compatible blockchains

Docker Image Size build

An indexer is a program that fetches and stores blockchain data for later analysis.

This indexer is specifically created to parse known data for EVM-compatible chains.

It stores all the blockchain primitives (blocks, transactions, receipts, logs, traces, withdrawals) and some other useful information (contracts created, erc20 transfers, erc721 transfers, erc1155 transfers)

Requirements

Local

  1. Clone the repository
git clone https://github.com/eabz/evm-indexer && cd evm-indexer
  1. Build the program
cargo build --release

Docker

  1. Clone the repository
git clone https://github.com/eabz/evm-indexer && cd evm-indexer
  1. Build the image and tag it as indexer
docker build . -t indexer

Program flags

Flag Default Purpose
--debug false Start log with debug.
--chain 1 Number identifying the chain id to sync.
--start-block 0 Block to start syncing.
--end-block 0 Last block to sync (0 to sync all the blocks).
--batch-size 200 Amount of blocks to fetch in parallel.
--rpcs empty Comma separated list of rpcs to use to fetch blocks.
--database empty Clickhouse database string with username and password.
--ws empty Url of the websocket endpoint to fetch new blocks.
--traces true Fetch blockchain traces.

About

A scalable SQL indexer for EVM compatible blockchains

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published