Skip to content

Read dex state (e.g. Uniswap) from reth db

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

cakevm/rethdb-dexsync

Repository files navigation

RethDB DexSync

This crate provides a way to read Uniswap v2/v3 pool states direct from the Reth database. This will speed up the initial sync process and reduce the load on the Ethereum node.

Features

  • Reading Uniswap v2 pairs/reserves
  • Reading Uniswap v3 pools positions and slot0

Usage

The RETH_DB_PATH without /db/ directory. For example, if the path is /home/user/reth/db/, then the RETH_DB_PATH should be /home/user/reth.

RETH_DB_PATH=<your_reth_db_path>
cargo run --release --example univ2_pairs
cargo run --release --example univ3_pools

Acknowledgements

Many thanks to the team of reth.

License

This project is dual-licensed under the MIT and Apache-2.0 licenses.

About

Read dex state (e.g. Uniswap) from reth db

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published