GithubHelp home page GithubHelp logo

xag-ledgerstats's Introduction

XAG Ledger Stats

You can use this tool to fetch all the account balance information or a specific XAG ledger number.

The default server it will connect to is g1.xrpgen.com.

Workflow

You'll need to have node (nodejs) installed on your computer.

After clone this repository, install dependencies:

npm install

Syntax

Fetch ledger account data into .json file

Run the code to fetch all account balances using:

npm run fetch

If you don't append any arguments, the latest (closed) ledger will be fetched from the public g1.xrpgen.com server.

If you want to fetch a specific ledger, append the ledger index:

npm run fetch 22508618

**The tool will save the balance information for the ledger in ./data/ledgerno.json, eg. ./data/22508618.json.

Process ledger data from .json file (to stats)

Run:

npm run stats 22508618

... where 22508618 is the ledger index you want to process. You should -of course- have fetched this ledger first.

Sample:

 -- Ledger close time:   2021-Aug-31 05:51:02.000000000
Reading ledger stats: 22508618.json
 -- Accounts:              82600
 -- Ledger close time:     2021-Aug-31 05:54:42.000000000
 -- Ledger hash:           5396F8478976A4083A17BAA22F4141B284146ACB349626BE11252C8A337D27D0
 -- Ledger index:          22508618
 -- Total XAG existing:    99,999,998,065.321472

xag-ledgerstats's People

Contributors

ripplefox avatar

Watchers

 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.