debug_storageRangeAt

debug_storageRangeAt RPC Method

Parameters:

blockHash - string - The hash of the block

txIndex - integer - The transaction index for the point in which we want the list of accounts

address - string - The contract address

startKey - string - The offset (hash of storage key)

limit - string - The number of storage entries to return

Returns:

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

hash - The hash value

key - The key associated with the hash

value - The value associated with the hash

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

Code Examples:

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "method": "debug_storageRangeAt",
  "params": ["0x76f64c40d6493cf00426be2eecdaf3f968768619bfb21ce6c57921be497ab3f7",0,"0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5","0x0000000000000000000000000000000000000000000000000000000000000000",1],
  "id": 1,
  "jsonrpc": "2.0"
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://api.ebs.ezat.io/core/api/v1.0/rpc/ethereum/mainnet?x-api-key-id=API-KEY-ID&x-api-key=API-KEY", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

Last updated