Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Blockchain by (4.1k points)

Can somebody explain the usage of transientMap in channel.sendTransactionProposal(request, timeout) and getTransient() in chaincode with an use case. What is so special with data of getTransient() when compared to normal arguments

1 Answer

0 votes
by (14.4k points)

Regular arguments are a part of the endorsement proposal and therefore persisted even when the transient map is not. 

For this reason, if you would like to pass some data which is not required to be kept in the endorsement proposal, use GetTransient API. 

For example, while doing application-level encryption, pass the keys and crypto material within the transient map itself.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...