Event indexer for the Ideal Network.
IDN Indexer uses the Hybrid Indexer Rust library. It can be accessed using Hybrid Dapp.
Ideal Network Indexer can be built using cargo build
, however it is necessary to use the nightly rustc
.
rustup default nightly
cargo build --release
Compiling metadata
can take a very long time.
Usage: ideal-indexer [OPTIONS]
Options:
-c, --chain <CHAIN> Chain to index [default: ideal] [possible values: ideal,polkadot, kusama, rococo, westend]
-d, --db-path <DB_PATH> Database path
-u, --url <URL> URL of Substrate node to connect to
-b, --block-number <BLOCK_NUMBER> Block number to start indexing from
--queue-depth <QUEUE_DEPTH> Maximum number of concurrent requests to the chain [default: 64]
-p, --port <PORT> Port to open for WebSocket queries [default: 8172]
-v, --verbose... More output per occurrence
-q, --quiet... Less output per occurrence
-h, --help Print help
-V, --version Print version
First build the docker image:
docker build .
Run the docker image for each chain in a separate tab (replace [image_hash]
with the hash of the docker image displayed at the end of the build):
docker run --rm -p 8172:8172 [image_hash] -c ideal -b 16730000 -p 8172
docker run --rm -p 8172:8172 [image_hash] -c polkadot -b 16730000 -p 8172
docker run --rm -p 8172:8172 [image_hash] -c kusama -b 16730000 -p 8172
docker run --rm -p 8174:8174 [image_hash] -c rococo -b 6550000 -p 8174
docker run --rm -p 8175:8175 [image_hash] -c westend -b 16940000 -p 8175