Node v12.16.3
or greater
Node >= 15.12.0
recommended
git clone https://github.com/wakqasahmed/dlt_implementation.git
cd dlt_implementation
Open separate terminal for each of the given below:
node ./lesson_01/01.js 8001
ornode ./lesson_01/02.js 8001
node ./lesson_01/01.js 8002
ornode ./lesson_01/02.js 8002
node ./lesson_01/01.js 8003
ornode ./lesson_01/02.js 8003
Open separate terminal for each of the given below:
node -r esm index.mjs 8001 wa
node -r esm index.mjs 8002 ok
node -r esm index.mjs 8003 je
Commands
balance
- To check the node balanceledger
- To check the list of all transactions executed so farsend <userIntitials>
e.g.send wa
- To send 1 WBE token to another user
Open separate terminal for each of the given below:
node -r esm index.mjs 8001 wa
node -r esm index.mjs 8002 ok
node -r esm index.mjs 8003 je
Commands
balance
- To check the node balanceledger
- To check the list of all transactions executed so farsend <userIntitials>
e.g.send wa
- To send 1 WBE token to another userpending
- To check the list of all pending transactions, waiting for recipient to approveapprove <txnNumber>
e.g.approve 20
To approve transaction requiring recipient approval