An open API service indexing awesome lists of open source software.

https://github.com/saikrishnareddy1919/simple-blockchain-demo-using-javascript

Simple blockchiain demonstration using blockhain.
https://github.com/saikrishnareddy1919/simple-blockchain-demo-using-javascript

blockchain blockchain-demos cryptojs javascript

Last synced: about 2 months ago
JSON representation

Simple blockchiain demonstration using blockhain.

Awesome Lists containing this project

README

          

## getBalanceOfAddress()

unlike tradational method of getting a balance of an account, in blockchain we have to loop through every block in the blockchain. While looping, if txn is 'from' that address then we hv to reduce to the amount otherwise if txn is 'to' that address then we have to add that amount to that address and return the result.

To run this ->

### -> npm install
### -> node block.js

after entering above commands try playing with this.