I found at here, that it is possible for a client to get the value from storage of a contract at a particular index using eth.getStorageAt(contract_address, index) interface. I wanted to ask
Is it possible to download the complete storage of a smart contract using geth client?
I tried writing a script consisting of a loop to execute this call repeatedly, but the problem with this approach is that for out of range index it always returns 0x0 which is ambiguous if the client does not know the size of the storage. Which leads me to the question
Is it possible to find the size of the storage occupied by a smart contract?