Create custom javascript chaincode and install it to peers

  1. For doing this we need to create custom chaincode first.
  2. Create folder name custom in /fabric-samples/chaincode and inside the custom we need to create javascript folder;
  3. so our directory: fabric-samples/chaincode/custom/javascript/custom/js

Then required to do:

  • Install & define chaincode
  • Initialize chaincode put initial data to the ledger