fabric-samples icon indicating copy to clipboard operation
fabric-samples copied to clipboard

Can chaincode call other chaincode?

Open lluckydog opened this issue 2 years ago • 1 comments

Chaincode can be seen as smart contract, but in Ethereum there may have smart contract call other contract. Is it possible to call other chaincode in Fabric if a peer install two chaincode in the same channel? If possible, how can I write a chaincode like this?

lluckydog avatar Nov 11 '22 07:11 lluckydog

Of course, you can. see shim.ChaincodeStubInterface

lcl1024 avatar Nov 29 '22 07:11 lcl1024