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

If a chaincode A stores a variable V to the World State can this variable V be accessed by another chaincode B?

In other words, are variables in the World State access protected?

If it is not possible, how can I make chaincode B read the variables from chaincode A (I need it for my use case)?

1 Answer

0 votes
by (29.5k points)

No, variables stored by some chaincode A can only be accessed by the same chaincode A.

In case you want to to do something like that you can try to  invoke/query chaincode A from chaincode B

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

30.4k questions

32.5k answers


108k users

Browse Categories