Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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)

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

eg:

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

Browse Categories

...