Explore Courses Blog Tutorials Interview Questions
0 votes
in Blockchain by (12.7k points)

I'm using the hyperledger HFC to send requests to the blockchain. How can I obtain the UUID of a transaction after submitting an invoke transaction using the SDK?

1 Answer

0 votes
by (29.5k points)
edited by

The results returned via the 'submitted' event contains the UUID of the transaction.


var tx = user.invoke(req);
tx.on('submitted', function (results) {
    console.log("uuid=%s", results.uuid);

Give yourself time to explore the Blockchain field properly. Enroll in Blockchain Online Training now.

Browse Categories