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)?

eth
  • 85,679
  • 53
  • 285
  • 406
Rahul Sharma
  • 1,303
  • 2
  • 16
  • 24

1 Answers1

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?

eth
  • 85,679
  • 53
  • 285
  • 406