Re: Transient Arguments #fabric


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@...>
Date: Friday, September 30, 2022 at 1:51 AM
To: fabric@... <fabric@...>
Subject: [EXTERNAL] [Hyperledger Fabric] Transient Arguments #fabric

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

This Message Is From an External Sender

This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd

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,

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