0

Contracts have 2 ** 256 32-byte storage slots available to store data in. This can be thought of as each contract having it's own database. Can all nodes in a blockchain network access to smart contract's storage space ?

1

Any node in the network can read this data but only your smart contract can add/update/delete it.

This method can be used to read the storage of a contract https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethgetstorageat

0

No.

Only you smart contract is able to alter this storage!

The functions you have in your contract define the conditions under which this storage can be changed.

  • thank you for your reply but i meant "to read" the storage of the smart contract not to alter this storage – M.CHAIEB Nov 6 '17 at 15:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.