Extracting information from a contract

I have 3 questions that I can't seem to find answers to:

How does one extract stored memory values from a contract and display it in Alethzero?

Are stored values in the contract privy to the contract creator?

Does extracting a stored value require gas?


  • JasperJasper Eindhoven, the NetherlandsMember Posts: 514 ✭✭✭
    You can no longer extract contract storage from another contract. However, you can call the contract and get data in the return value. This gives people some ability to ask for payment for data, though other contracts can memoize outputs and just pay whatever fee once, although there might be countermeasures.(and responses to avoid them)

    Clients can look at whatever, of course here are the PoC 5 JS bindings. In particular storageAt(_a, _x). (but you're probably interested in those bindings in general)

    Peeking at storage could be a bit cumbersome/more bug prone if there are different variants of the same thing using slightly different locations, so i think . No fakeMessage yet though. Here is an issue about it, i will try add some such thing, though go-ethereum has a console; ethereum -js, and i want to give that a shot to try test a simple contract first.
Sign In or Register to comment.