GithubHelp home page GithubHelp logo

xrpscan / validator-history-service Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ripple/validator-history-service

0.0 0.0 0.0 2.35 MB

Service for ingesting, aggregating, storing, and disbursing XRP Ledger validation related data.

License: ISC License

JavaScript 3.14% TypeScript 96.86%

validator-history-service's Introduction

Validator History Service

The Validator History Service (VHS) is a service for ingesting, aggregating, storing, and disbursing node- and validation-related data.

Installation

Install VHS globally

To install the Validator History Service globally on your computer, run

npm i -g validator-history-service

Database

The Validator History Service only supports Postgres. You'll need to create a database, but the Validator History Service will create the tables and schema for you.

Environment variables

Create a .env file with the same environment variable as .env.example where you want to run the Validator History Service.

Alternatively, update your .bashrc or .zshrc to export the environment variables.

Here are some example values for some environment variables:

  • MAINNET_P2P_SERVER: your mainnet peer-to-peer rippled node FQDN
  • MAINNET_UNL: a mainnet validator domain which hosts a UNL, for example MAINNET_UNL=vl.ripple.com

Run

The Validator History Service runs on HTTP on port 3000.

After installation, you have access to the validatorhistoryservice command globally.

Run validatorhistoryservice with --api to launch the API server:

validatorhistoryservice --api

Run validatorhistoryservice with --connections to launch the connection manager:

validatorhistoryservice --connections

Run validatorhistoryservice with --crawler to launch the network crawler:

validatorhistoryservice --crawler

API inspection

Once the service and API are running, you may inspect the API by issuing any HTTP request to port 3000:

curl localhost:3000

Contributing

Please follow this link

validator-history-service's People

Contributors

mvadari avatar mayurbhandary avatar dependabot[bot] avatar pdp2121 avatar mukulljangid avatar natenichols avatar nbougalis 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.