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?