Welcome to the Linux Foundation Forum!

Chapter 9 - Cross Chaincode invokation

I am trying to invoke a chaincode from another chaincode. I am trying to figure out the command to be used to pass as an argument as per chaincode_interaction.zip in repository. I tried numerous combination, but i am not able to understand / parse the JSON format of the last parameter to be passed.

peer chaincode invoke ${orderer} -C mychannel -n chaincode_interaction ${peer_org1} ${peer_org2} -c '{"function":"interact","Args":["mychannel","balance_transfer","{"function":"initAccount","Args":["A1","100"]}"]}'

but above command errors out - invalid character 'f' after array element.

Comments

Categories

Upcoming Training