Skip to content

🦀 Data indexer for the Ethereum (and other Ethereum RPC compatible) blockchain

License

Notifications You must be signed in to change notification settings

asadkovich/ethereum-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum indexer

Crawls data from the ethereum blockchain to the PostgreSQL database.

Install

You need Rust + Cargo installed.

  1. Clone source files
$ git clone https://github.com/asadkovich/ethereum-indexer
  1. Build and install binary
$ cargo install --path .

Usage

Start indexer with fetching the entire data history and subscribing to new blocks:

$ ethereum-indexer --migrate --dsn <POSTGRES_CONN_STRING> --rpc-url <ETHEREUM_WS_ENDPOINT>

See help for more:

$ ethereum-indexer --help

Run docker example

$ RPC_URL=<ETHEREUM_WS_ENDPOINT> docker-compose -f ./deployments/docker-compose.yaml up --build

Metrics

Open http://localhost:3000 to see grafana dashboards

About

🦀 Data indexer for the Ethereum (and other Ethereum RPC compatible) blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published