Coder Social home page Coder Social logo

acuity-index-polkadot's Introduction

Polkadot Indexer

Event indexer for Polkadot, Kusama, Rococo and Westend blockchains.

Architecture

Hybrid Architecture

Polkadot Indexer uses the Hybrid Indexer Rust library. It can be accessed using Hybrid Dapp.

Building

Polkadot 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.

Running

Usage: polkadot-indexer [OPTIONS]

Options:
  -c, --chain <CHAIN>                Chain to index [default: polkadot] [possible values: 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

Docker

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 polkadot -b 16730000 -p 8172
docker run --rm -p 8173:8173 [image_hash] -c kusama -b 19120000 -p 8173
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

acuity-index-polkadot's People

Contributors

ethernomad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.