Taya events indexer and pricing calculator
You can try the indexer locally or using Docker.
- Clone the repository
git clone https://github.com/sub-labs/taya-snoop && cd taya-snoop
- Build the program
cargo build --release
Build the docker image
docker build . -t snoop
Copy the .env.example
and rename it to .env
Start the indexer
docker compose up
Flag | Default | Purpose |
---|---|---|
--rpc |
empty |
URL of the RPC endpoint to fetch chain data and logs. |
--database |
empty |
MongoDB connection URL (e.g. 'mongodb://user:password@host:27017/dbname'). |
--batch-size |
50 |
Number of blocks to fetch in each batch of logs. |