A minimal node.js JavaScript app that demonstrates how to create an application with automated JWT token management.
This demo queries the BCH balance of a single address every 10 seconds. It uses the free-tier of Fullstack.cash to access the Bitcoin Cash blockchain. It uses the jwt-bch-lib npm library to automatically retrieve its JWT token when the app starts.
- Clone this repository:
git clone https://github.com/Permissionless-Software-Foundation/jwt-bch-demo
- Enter the new directory:
cd jwt-bch-demo
- Install dependencies:
npm install
- Start the demo:
npm start