Blockchain in Javascript – Mining Rewards & Transactions (Part 3)

Implementing miner rewards and basic transactions in our Javascript based blockchain.

Mining rewards steadily introduce new coins into the system.

OOPS, I made a small mistake! In the minePendingTransactions() method, you have to pass the hash of the previous block when you’re creating a new Block() instance. This was fixed on GitHub:

► Source code
Available on GitHub:
https://github.com/SavjeeTutorials/SavjeeCoin

(Visited 113 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *

eos
EOS (EOS) 0,899951 0,64%
aave
Aave (AAVE) 60,06 3,31%
the-graph
The Graph (GRT) 0,061599 1,76%
kusama
Kusama (KSM) 26,12 2,11%
waves
Waves (WAVES) 2,15 0,12%
dash
Dash (DASH) 39,87 0,21%
bitcoin
Bitcoin (BTC) 15.910,15 0,35%
ethereum
Ethereum (ETH) 1.172,69 0,10%
cardano
Cardano (ADA) 0,304464 0,67%
tether
Tether (USDT) 0,961164 0,07%
xrp
XRP (XRP) 0,388215 1,41%
solana
Solana (SOL) 13,84 0,13%
polkadot
Polkadot (DOT) 5,18 1,03%
usd-coin
USD Coin (USDC) 0,961164 0,14%
dogecoin
Dogecoin (DOGE) 0,090434 1,18%
uniswap
Uniswap (UNI) 5,35 1,19%
terra-luna
Terra Luna Classic (LUNC) 0,000156 0,46%
litecoin
Litecoin (LTC) 73,55 1,26%
chainlink
Chainlink (LINK) 6,87 3,43%
bitcoin-cash
Bitcoin Cash (BCH) 108,26 1,50%
algorand
Algorand (ALGO) 0,235946 0,03%
matic-network
Polygon (MATIC) 0,822245 0,94%
stellar
Stellar (XLM) 0,085930 0,78%
cosmos
Cosmos Hub (ATOM) 9,80 0,30%
filecoin
Filecoin (FIL) 4,29 2,64%
tron
TRON (TRX) 0,051336 0,11%
ethereum-classic
Ethereum Classic (ETC) 19,33 1,58%
dai
Dai (DAI) 0,961164 0,10%
tezos
Tezos (XTZ) 0,957290 0,56%
monero
Monero (XMR) 132,44 0,49%