A scalable SQL indexer for EVM compatible blockchains
- Rust
- CockroachDB (or any other PostgreSQL compatible DB)
- Redis (used to store the indexed blocks state)
This indexer is chain agnostic. It should work with any chain that follows the ETH RPC API. But some chains have some minor modifications that could result in them not being able to sync.
The following chains have been tested and indexed successfully:
- Arbitrum One.
- Arbitrum Nova.
- Avalanche.
- BitTorrent Chain.
- BNB Chain.
- Celo.
- Ethereum.
- Fantom.
- Gnosis Chain.
- Moonbeam.
- Optimism.
- Polygon.
You can try the indexer locally or through Docker.
- Clone the repository
git clone https://github.com/llamafolio/evm-indexer && cd evm-indexer
- Build the program
cargo build --release
-
Copy the
.env.example
file to.env
and add your environment variables. -
Run the program
TODO: programs and flags.
- Clone the repository
git clone https://github.com/llamafolio/evm-indexer && cd evm-indexer
- Build the image and tag it as
indexer
docker build . -t indexer
-
Copy the
.env.example
file to.env
and add your environment variables. -
Run the image
TODO: programs and flags.