Transient Arguments #fabric
Kumari Shweta
Hi Team,
Is it possible to send transient and non -transient arguments together in chaincode args. I have an asset struct with fields id,name,owner and price.Is it possible to make "price" only transient varibale and other can be non-transient.If it is then how we can pass args in "peer chaincode invoke " command Kindly clear me. Regards, |
||||
|
||||
David Enyeart
Yes it is typical to send both regular arguments and private transient arguments when invoking chaincode.
https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html demonstrates regular arguments. https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html demonstrates private transient arguments.
You can combine the approaches and send both.
From:
fabric@... <fabric@...> on behalf of Kumari Shweta via lists.hyperledger.org <kumari.shweta=hcl.com@...> Hi Team, Is it possible to send transient and non -transient arguments together in chaincode args. I have an asset struct with fields id,name,owner and price. Is it possible to make "price" only transient varibale and other can be non-transient. If ZjQcmQRYFpfptBannerStart
ZjQcmQRYFpfptBannerEnd Hi Team, |
||||
|