Skip to content

provenance-io/node-prov-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Prov Client (WIP)

This is the beginning of a Node.js provenance client, which will in the future be able to support a much larger feature set within the Provenance Blockchain.

This is very much a work in progress. Future development is planned, but due to current obligations this codebase currently only supports the calculations and queries needed to prove the value of the FIGR_HELOC token, which can also be viewed at figuretoken.com.

Long term, we will try to add the rest of the Provenance protos, and use grpc-js to support the full suite of Provenance actions.

To use

  1. Install yarn or npm install
  2. Verify the RPC and fetch endpoints, and update them as necessary where marked in the code (index.ts and provenance-client.ts)
  3. Run the sum script with yarn sum or npm run sum

To Test

If using publically available RPC or fetch endpoints, this will most certainly run up against rate limits, and require more changes to support that type of setup. We highly recommend running against a private node or running provenance locally. For more information on that, refer to this HackMD

Fetch vs. RPC Node

The main function can support fetch or RPC Node queries. To change this, supply the main() execution in index.ts with true (uses fetch) or false (uses RPC node)

Future Development

  • Support all Provenance and Cosmos protos
  • Support GRPC-js
  • Add tests
  • Publish as an npm package

About

Node project for Provenance Client

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors