Regarding Transaction id
Pechimuthu T
Hi all, Greetings. When we submit transactions to HLF BC network, the response is not immediate. It is because the systems asynchronous nature. But client applications requires some transaction identity so it can be used for finding transaction status at later time. Gateway part of fabric-network gives us the only final response which is not instant. Can I transaction id transaction proposal ? ( before submitting the same to peer, ie at the client itself ) Please send code sample if possible. Thanks and Regards, T. Pechimuthu Disclaimer: This e-mail and its attachments may contain official Indian Government information. If you are not the intended recipient, please notify the sender immediately and delete this e-mail. Any dissemination or use of this information by a person other than the intended recipient is unauthorized. The responsibility lies with the recipient to check this email and any attachment for the presence of viruses. |
|
Raza Sikander
Hi Pechimuthu You can try this snippet of code instead of ```result = await contract.submitTransaction(fcn, args);```
console.log("TxID:", transaction.getTransactionId()); const result = await transaction.submit(...args); Regards Raza Sikander
On Mon, Jan 31, 2022 at 10:35 AM Pechimuthu T <tpmuthu@...> wrote:
|
|
Pechimuthu T
Thanks Mr. Raza Sikander. It helped me to resolve my issue. Regards, T. Pechimuthu From: "raza sikander s" <raza.sikander.s@...> To: "Pechimuthu T" <tpmuthu@...> Cc: fabric@... Sent: Monday, January 31, 2022 10:46:10 AM Subject: Re: [Hyperledger Fabric] Regarding Transaction id Hi Pechimuthu You can try this snippet of code instead of ```result = await contract.submitTransaction(fcn, args);```
console.log("TxID:", transaction.getTransactionId()); const result = await transaction.submit(...args); Regards Raza Sikander
On Mon, Jan 31, 2022 at 10:35 AM Pechimuthu T <tpmuthu@...> wrote:
|
|