Skip to content

COLUD4/explorer-backend

This branch is 3 commits behind ergoplatform/explorer-backend:master.

Folders and files

NameName
Last commit message
Last commit date
Dec 17, 2019
Nov 7, 2022
Oct 17, 2022
Sep 7, 2022
Nov 11, 2021
Dec 30, 2020
Aug 1, 2020
Sep 7, 2022
Nov 7, 2022
Nov 11, 2021

Repository files navigation

Ergo Blockchain Explorer

This repository contains 4 services:

1. Chain Grabber

modules/chain-grabber

Scans blockchain, dumps aggregated data to database

Dependencies:

  • Postgres (Schema modules/explorer-core/src/main/resources/db/V9__Schema.sql)

2. Explorer API

modules/explorer-api

Provides a set of HTTP API methods for querying chain/off-chain data.

Specification: https://api.ergoplatform.com/docs/openapi

Dependencies:

  • Postgres (Schema modules/explorer-core/src/main/resources/db/V9__Schema.sql)
  • Redis

3. UTX Tracker

modules/utx-tracker

Dumps unconfirmed transactions from mempool to local database

Dependencies:

  • Postgres (Schema modules/explorer-core/src/main/resources/db/V9__Schema.sql)

4. UTX Broadcaster

modules/utx-broadcaster

Broadcasts unconfirmed transactions to a set of known peers

Dependencies:

  • Redis

Assembly

Service JAR can be build with sbt <service-name>/assembly, assembly will appear in modules/<service-name>/target directory.

Configuration

Config samples can be found in modules/<service-name>/src/main/resources/application.conf

TestNet Configuration

To establish TestNet Connection modify .conf parameters in modules to:

 network.master-nodes = ["http://195.201.82.115:9052"]
 
 protocol.network-prefix = 16
 protocol.genesis-address = "AfYgQf5PappexKq8Vpig4vwEuZLjrq7gV97BWBVcKymTYqRzCoJLE9cDBpGHvtAAkAgQf8Yyv7NQUjSphKSjYxk3dB3W8VXzHzz5MuCcNbqqKHnMDZAa6dbHH1uyMScq5rXPLFD5P8MWkD5FGE6RbHKrKjANcr6QZHcBpppdjh9r5nra4c7dsCgULFZfWYTaYqHpx646BUHhhp8jDCHzzF33G8XfgKYo93ABqmdqagbYRzrqCgPHv5kxRmFt7Y99z26VQTgXoEmXJ2aRu6LoB59rKN47JxWGos27D79kKzJRiyYNEVzXU8MYCxtAwV"

Run

SBT project: sbt <service-name>/run

Assembly JAR: java -jar <<service-name>-assembly-*.jar>

Tests: sbt test

Ergo bootstrap

This project is included in ergo bootstrap, which will help you to quickly deploy an Ergo blockchain cluster with a handful of useful tools you might need to start developing your dApps.

About

Ergo Blockchain Explorer

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 99.4%
  • Other 0.6%