Skip to content

Instantly share code, notes, and snippets.

@cayblood
Created March 19, 2020 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cayblood/e9efdca98b6ce6dce635e283a6b129b0 to your computer and use it in GitHub Desktop.
Save cayblood/e9efdca98b6ce6dce635e283a6b129b0 to your computer and use it in GitHub Desktop.
Basic chaincode example
'use strict';
const shim = require('fabric-shim');
let Chaincode = class {
async Init(stub) {
console.info('============= Init called =============');
return shim.success();
}
async Invoke(stub) {
console.info('============= Invoke called =============');
return shim.success();
}
}
shim.start(new Chaincode());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment