debug_storageRangeAt RPC Method
Parameters
blockHash
string
REQUIRED
Loading...
txIndex
integer
REQUIRED
Loading...
address
string
REQUIRED
Loading...
startKey
string
REQUIRED
Loading...
limit
string
REQUIRED
Loading...
Returns
storage
Loading...
hash
object
Loading...
key
Loading...
value
Loading...
nextKey
Loading...
Request
curl https://docs-demo.optimism.quiknode.pro/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"debug_storageRangeAt","params":["0x76f64c40d6493cf00426be2eecdaf3f968768619bfb21ce6c57921be497ab3f7",0,"0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5","0x0000000000000000000000000000000000000000000000000000000000000000",1],"id":1,"jsonrpc":"2.0"}'
require 'eth' client = Eth::Client.create 'https://docs-demo.optimism.quiknode.pro/' payload = { "jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x76f64c40d6493cf00426be2eecdaf3f968768619bfb21ce6c57921be497ab3f7",0,"0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5","0x0000000000000000000000000000000000000000000000000000000000000000",1], "id": "1" } response = client.send(payload.to_json) puts response
const ethers = require("ethers"); (async () => { const provider = new ethers.providers.JsonRpcProvider("https://docs-demo.optimism.quiknode.pro/"); const filterId = await provider.send("debug_storageRangeAt", [ "0x76f64c40d6493cf00426be2eecdaf3f968768619bfb21ce6c57921be497ab3f7", 0, "0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5", "0x0000000000000000000000000000000000000000000000000000000000000000", 1, ]); console.log(filterId); })();
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://docs-demo.optimism.quiknode.pro/", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
import requests import json url = "https://docs-demo.optimism.quiknode.pro/" payload = json.dumps({ "method": "debug_storageRangeAt", "params": ["0x76f64c40d6493cf00426be2eecdaf3f968768619bfb21ce6c57921be497ab3f7",0,"0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5","0x0000000000000000000000000000000000000000000000000000000000000000",1], "id": 1, "jsonrpc": "2.0" }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
require "uri" require "json" require "net/http" url = URI("https://docs-demo.optimism.quiknode.pro/") http = Net::HTTP.new(url.host, url.port); request = Net::HTTP::Post.new(url) request["Content-Type"] = "application/json" request.body = JSON.dump({ "method": "debug_storageRangeAt", "params": ["0x76f64c40d6493cf00426be2eecdaf3f968768619bfb21ce6c57921be497ab3f7",0,"0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5","0x0000000000000000000000000000000000000000000000000000000000000000",1], "id": 1, "jsonrpc": "2.0" }) response = http.request(request) puts response.read_body
from web3 import Web3, HTTPProvider provider = Web3.HTTPProvider("https://docs-demo.optimism.quiknode.pro/") result = provider.make_request('debug_storageRangeAt', ["0x76f64c40d6493cf00426be2eecdaf3f968768619bfb21ce6c57921be497ab3f7",0,"0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5","0x0000000000000000000000000000000000000000000000000000000000000000",1]) print(result)
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free