This repository contains 4 services:
modules/chain-grabber
Scans blockchain, dumps aggregated data to database
Dependencies:
- Postgres (Schema
modules/explorer-core/src/main/resources/db/V9__Schema.sql
)
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
modules/utx-tracker
Dumps unconfirmed transactions from mempool to local database
Dependencies:
- Postgres (Schema
modules/explorer-core/src/main/resources/db/V9__Schema.sql
)
modules/utx-broadcaster
Broadcasts unconfirmed transactions to a set of known peers
Dependencies:
- Redis
Service JAR can be build with sbt <service-name>/assembly
, assembly will appear in modules/<service-name>/target
directory.
Config samples can be found in modules/<service-name>/src/main/resources/application.conf
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"
SBT project:
sbt <service-name>/run
Assembly JAR:
java -jar <<service-name>-assembly-*.jar>
Tests:
sbt test
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.