Re: Can I view contracts in a chaincode?


Mark Lewis
 

If you are using the Contract API for your chaincode / smart contract implementation, your chaincode should have a "org.hyperledger.fabric:GetMetadata" transaction function that will provide you with information on the smart contracts and transaction functions contained in the chaincode. See this Gist for details of how to retrieve the metadata using a client application, although you could also use the Fabric CLI:

https://gist.github.com/mbwhite/f335f2ec46ec7544fb0f386fb049029b#file-metadata-ts-L106-L121

Join fabric@lists.hyperledger.org to automatically receive all group messages.