not getting real transaction ID only getting temp-transaction ID in fabric-sdk

+1 vote
I am using below code for submitting a transaction in fabric but not getting committing transaction Id in node js SDK

       let eventHub = await hlcConnection.channel.newChannelEventHub(hlcConnection.peer);
            // eventHub =  await hlcConnection.channel.getChannelEventHubsForOrg("updevop1");
            //eventHub = await hlcConnection.channel.getChannelEventHubsForOrg();
            let txPromise = new Promise((resolve, reject) => {
                let handle = setTimeout(() => {
                    eventHub.unregisterTxEvent(transactionIdString);
                    eventHub.disconnect();
                    resolve({event_status: "TIMEOUT"});
                }, 30000);
                eventHub.registerTxEvent(transactionIdString, (tx: any, code: any, block: any) => {
                        clearTimeout(handle);
                        const returnsStatus = {event_status: code, tx_id: tx};
                        if (code !== "VALID") {
                            console.error("The transaction was invalid, code = " + code);
                            resolve(returnsStatus);
                        } else {
                            console.log("The transaction has been committed on peer " + eventHub.getPeerAddr());
                            resolve(returnsStatus);
                        }
                    }, (err: any) => {
                        //this is the callback if something goes wrong with the event registration or processing
                        reject(new Error("There was a problem with the eventhub ::" + err));
                    },
                    {startBlock: null} //disconnect when complete
                );
                eventHub.connect();
            });
            promises.push(txPromise);

 

I am getting  temp txid 4826e50b51d505c31c6529a1699d51a8c78aaa6b0b360f92f44f8be7855b08cf but commiting id "transactionId": "e8622f67-9987-46c6-9094-93deb464184c"

I am not able to get this committing ID at the time of event hub Please help me to resolve this issue
Nov 14, 2019 in Blockchain by laxman
• 130 points
789 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Blockchain

0 votes
1 answer

Hyperledger Fabric: How to access transaction ID in invoke function?

You can access transaction ID in Invoke ...READ MORE

answered Nov 5, 2018 in Blockchain by Omkar
• 69,220 points
2,422 views
+1 vote
1 answer
+1 vote
2 answers
0 votes
1 answer

Why am I not getting 100 ethers in my metamask account?

Sorry that you're having this problem. To ...READ MORE

answered Jun 14, 2018 in Blockchain by Christine
• 15,790 points
2,513 views
+1 vote
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,455 views
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
1,006 views
+16 votes
4 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP