1.0.0 • Published 3 years ago

@axiasolar/json-serve v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

@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 ...