Criando novo objeto de transação para blockchain
Blockchain.prototype.createNewTransaction = function(amount, sender, recipient) {
const NewTransaction = {
amount : amount,
sender : sender,
recipient : recipient
};
this.pendingTransactions.push(NewTransaction);
return this.getLastBlock()['index'] +1;
}
Outrageous Ostrich