Skip to content

Category: Smart Contract

Hyperledger Fabric Smart Contract: Basic Chaincode

git-icon

The very core of Hyperledger Fabric is Chaincode, you need a Chaincode to read and write data to the World State. There is a syntax for writing your Chaincode. The Chaincode has two methods Init and Invoke, Init is called when the chaincode is instantiated and Invoke when the chaincode is invoked or queried. Both these method has the same return type pb.Response.