Re: API to get local MSPID in chaincode? #fabric #fabric-questions #fabric-chaincode


Yueming Xu
 

Thanks.  chaincode-go has the same API, shim.GetMSPID(), which returns the value of env CORE_PEER_LOCALMSPID.

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