We're now supporting Polygon zkEVM!
Learn more here.

Contents

debug_storageRangeAt RPC Method

The API credit value for this method is 22 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. blockHash - string - The hash of the block
  2. txIndex - integer - The transaction index for the point in which we want the list of accounts
  3. address - string - The contract address
  4. startKey - string - The offset (hash of storage key)
  5. limit - string - The number of storage entries to return

Returns:

  1. storage - An object with hash values, and for each of them the key and value it represents
  2. hash - The hash value

    key - The key associated with the hash

    value - The value associated with the hash

  3. nextKey - The hash of next key if further storage in range. Otherwise, not included

Code Examples:

from web3 import Web3, HTTPProvider
provider = Web3.HTTPProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/")
result = provider.make_request('debug_storageRangeAt', ["0x76f64c40d6493cf00426be2eecdaf3f968768619bfb21ce6c57921be497ab3f7",0,"0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5","0x0000000000000000000000000000000000000000000000000000000000000000",1])
print(result)
Ready to get started? Create a free account