@axiasolar/json-serve

1.0.0 • Public • Published

@axiasolar/json-serve

A simple tool that serves a limited subset of on-chain information as JSON output.

Usage

yarn run:json-serve --ws ws://localhost:9944 --port 8181

Then just doing a get on http://localhost:8181 should return something like

Error: Invalid query '?q=', expected '?q=<type>', one of 'bondedpercentage', 'totalbonded', 'totalcoins'

When passing a correctly formatted query, e.g. http://localhost:8181?q=totalcoins should return for the chain, e.g -

8168333.357737305935

If you are installing it globally -

$ yarn global add @axiasolar/json-serve
$ AxiaSolar-Js-json-serve ...

Readme

Keywords

none

Package Sidebar

Install

npm i @axiasolar/json-serve

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

17.4 kB

Total Files

7

Last publish

Collaborators

  • sankar-boro-zeeve
  • abhishek-zeeve