Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Creating getLastBlock Object for blockchain

Blockchain.prototype.getLastBlock = function() {
    return this.chain[this.chain.length - 1];
}
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Creating #getLastBlock #Object #blockchain
ADD COMMENT
Topic
Name
8+6 =