Giter VIP home page Giter VIP logo

celestia-indexer's Introduction

FOSSA Status Build Status made_with golang License: MIT Go Coverage Latest release

Celestia Indexer | Celenium

This is an indexing layer for Celestia DA written in Golang that operates on top of the Celestia Full node and stores data in a Postgres database.

Run

Prerequisites:

Local run

Clone the repository:

git clone https://github.com/celenium-io/celestia-indexer.git
cd celestia-indexer

Create .env file and set up required environment variables:

cp .env.example .env
vim .env

Required environment variables:

  • CELESTIA_DAL_API_URL - uri for Celestia Full Storage Node
  • CELESTIA_NODE_AUTH_TOKEN - token with read access level for full storage node. You can get it from your running node instance by command celestia full auth read
  • CELESTIA_NODE_URL - uri to Celestia Consensus Node
  • POSTGRES_USER - username for Postgres
  • POSTGRES_PASSWORD - password for Postgres

Build the Docker images for the indexer and API:

docker compose build

Start the services using Docker Compose:

docker compose up -d

This will start the indexer and API services as well as a Postgres database instance. The services will be configured according to the .env file and the docker-compose.yml file in the repository.

โ‰ 

Features

  • RPC node client
  • Rollbacks are handled
  • Database is partitioned for better performance
  • Optional diagnostic mode for consistency checks

Indexed entities

  • Blocks
    • Transactions
    • Balance updates (block rewards, gov-triggered issuance/burn, other events)
    • Header
    • Stats
  • Transactions
    • Details
    • Balance updates
  • Blobs
    • Metadata
  • Accounts
    • Balances
    • Stats
  • Namespaces
    • Stats
  • Summary
    • Stats

License

FOSSA Status

celestia-indexer's People

Contributors

aopoltorzhicky avatar vvuwei avatar a1excoon avatar gastlypok avatar dmirgaleev avatar dependabot[bot] avatar fossabot 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.