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.
- Host: GitHub
- URL: https://github.com/saikrishnareddy1919/simple-blockchain-demo-using-javascript
- Owner: SaikrishnaReddy1919
- Created: 2020-10-06T14:45:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-06T14:48:26.000Z (over 5 years ago)
- Last Synced: 2025-01-21T15:49:47.044Z (over 1 year ago)
- Topics: blockchain, blockchain-demos, cryptojs, javascript
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.