If a different chaincode deployed a world state variable is it still accessible by another chaincode

0 votes

Are variables in the World State access protected?

If it is not possible, how can I make a chaincode read the variables from another chaincode? I need it for my use case please help.

Apr 4, 2018 in Blockchain by Christine
• 15,790 points
599 views

1 answer to this question.

0 votes
No, variables stored by some chaincode (A) can only be accessed by the same chaincode (A). So if another chaincode (B) tries to access the variable, access will be denied.

If you wanted to access such variables (because your use case requires interconnection between chaincodes) you can invoke/query chaincode A from chaincode B.
answered Apr 4, 2018 by Perry
• 17,100 points

Related Questions In Blockchain

0 votes
2 answers

Is it possible to modify a variable value from another contract?

No, you can't directly edit a variable ...READ MORE

answered Sep 24, 2018 in Blockchain by Sai
3,995 views
0 votes
1 answer
0 votes
1 answer

Is it possible to send eth to a contract through its constructor from another contract?

I found the solution for this: pragma solidity ...READ MORE

answered Sep 26, 2018 in Blockchain by slayer
• 29,350 points
1,497 views
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,241 views
+1 vote
1 answer

Hyperledger - How can I use transaction certificates to enforce privacy?

The transaction certificates don't actually address privacy ...READ MORE

answered Apr 17, 2018 in Blockchain by Perry
• 17,100 points
677 views
0 votes
1 answer

How to read a state after writing it into a chaincode?

Data that is 'written' in chaincode is ...READ MORE

answered May 28, 2018 in Blockchain by Perry
• 17,100 points
1,834 views
+1 vote
1 answer
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