Skip to content

Blockchain indexer for obtaining data from the blockchain

License

Notifications You must be signed in to change notification settings

fiit-tp7-2023/indexer

Repository files navigation

INDEXER

Dependencies: Node.js, Docker.

Quickstart developement

# 0. Install @subsquid/cli a.k.a. the sqd command globally

npm  i  -g  @subsquid/cli

# 1. Install dependencies

npm  ci

# 2. Create .env file accroding to .env.examample file

# 3. Start a Postgres database container and detach

sqd  up

# 4. Build and start the processor

sqd  process

# 5. The command above will block the terminal

# being busy with fetching the chain data,

# transforming and storing it in the target database.

#

# To start the graphql server open the separate terminal

# and run

sqd  serve

A GraphiQL playground will be available at localhost:4350/graphql.

Production

# 0. Build a docker image

docker build .  -t indexer

# 1. Create .env file accroding to .env.examample file

# 3. Start services using docker compose

docker-compose -f docker-compose-prod.yml up

# This command will run postgres db container, indexer service and graphQL api

About

Blockchain indexer for obtaining data from the blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •