Before you begin, make sure you have the following installed:
- Rust (stable >= 1.82)
- pkg-config for your OS (e.g.
pkg-configfor Ubuntu) - Lib SSL for your OS (e.g.
libssl-devfor Ubuntu)
Assuming you have the prerequisites installed and already cloned the repository, follow these steps:
To build the binary, run the following command:
cargo build --releaseBy default, the binary will be built in the target/release directory.
Next copy the binary to the root of the repository:
cp target/release/evm-indexer .First, create folders for the logs and configuration files:
mkdir logs
mkdir configCopy examples configuration files to the root directory:
cp example/.env.example config/.env
cp example/config.toml.example config/config.tomlEdit the .env and config.toml files to match your environment.
To run the binary, use the following command:
source config/.env && ./evm-indexer