0

I am trying to understand how to retrieve the complete storage of a contract based on chaindata (e.g. geth) of a full node.

I have already found how to programmatically access the chaindata (which is basically a levelDB) and the special trie structure:

https://github.com/ethereumjs/merkle-patricia-tree

Is this the way to go to get the contract storage?

  • What exactly are you trying to achieve? Dump the complete storage or lookup single slots? – ivicaa Mar 29 '18 at 10:44
  • Thanks for the reply. I would like to dump the "used" storage :) And therefore to access mappings and struct values (of contracts), which are not stored linearly in the storage space (but keccak is involved to identify the memory location) – mateuszk87 Mar 29 '18 at 12:59

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.