the name of the current chaincode.
The Init method is called when the Smart Contract is instantiated by the blockchain network Best practice is to have any Ledger initialization in separate function -- see initLedger()
The Invoke method is called as a result of an application request to run the Smart Contract. The calling application program has also specified the particular smart contract function to be called, with arguments
Generated using TypeDoc
The Chaincode class is a base class containing handlers for the
Invoke()
andInit()
function which are required byfabric-shim
. TheInit()
function can be overwritten by just implementing it in your Chaincode implementation class.