2

I am trying to trace history of transactions in ethereum. I am using a function called getStorageAt(). Now what should be the input to this function, a contract address or account address(account no)?

1 Answer 1

3

https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethgetstorageat

web3.eth.getStorageAt(addressHexString, position ...

For addressHexString you will want a contract address, since random addresses are unlikely to have any values in storage.

For position, see How do I get the storage indices/keys?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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