debug_storageRangeAt RPC Method
This method requires appending
/nanoreth to your HyperLiquid endpoint URL. Debug and Trace methods are not supported on /evm endpoints. Use /nanoreth 而非 /evm to access debugging functionality.參數
blockHash
字串
必填
載入中...
txIndex
整數
必填
載入中...
地址
字串
必填
載入中...
startKey
字串
必填
載入中...
上限
字串
必填
載入中...
退貨
結果
物件
載入中...
storage
物件
載入中...
雜湊
物件
載入中...
關鍵字
字串
載入中...
值
字串
載入中...
nextKey
字串
載入中...
請求
1curlmainnet\2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"debug_storageRangeAt","params":["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],"id":1,"jsonrpc":"2.0"}'5
1curlmainnet\2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"debug_storageRangeAt","params":["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],"id":1,"jsonrpc":"2.0"}'5
1require 'eth'23client = Eth::Client.create 'https://docs-demo.hype-mainnet.quiknode.pro/evm'4有效載荷 = {5"jsonrpc": "2.0",6"method": "debug_storageRangeAt",7"params": ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],8"id": "1"9}1011response = client.send(payload.to_json)12puts response
1require 'eth'23client = Eth::Client.create 'https://docs-demo.hype-mainnet.quiknode.pro/evm'4有效載荷 = {5"jsonrpc": "2.0",6"method": "debug_storageRangeAt",7"params": ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],8"id": "1"9}1011response = client.send(payload.to_json)12puts response
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hype-mainnet.quiknode.pro/evm");4const response = await provider.send("debug_storageRangeAt", [5"0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",60,7"0x3ccC78545F675A188B7521F7f4b4791995752635",8"0x0000000000000000000000000000000000000000000000000000000000000000",91,10]);11console.log(response);12})();
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hype-mainnet.quiknode.pro/evm");4const response = await provider.send("debug_storageRangeAt", [5"0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",60,7"0x3ccC78545F675A188B7521F7f4b4791995752635",8"0x0000000000000000000000000000000000000000000000000000000000000000",91,10]);11console.log(response);12})();
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var 原始 = JSON.stringify({5"method": "debug_storageRangeAt",6"params": ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],7"id": 1,8"jsonrpc": "2.0"9});1011var requestOptions = {12方法: 'POST',13標題: myHeaders,14正文: 原始,15重定向: '追蹤'16};1718fetch(「mainnet」, requestOptions)19.接著(回應 => response.text())20.接著(結果 => 控制台.log(結果))21.catchcatch(錯誤 => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var 原始 = JSON.stringify({5"method": "debug_storageRangeAt",6"params": ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],7"id": 1,8"jsonrpc": "2.0"9});1011var requestOptions = {12方法: 'POST',13標題: myHeaders,14正文: 原始,15重定向: '追蹤'16};1718fetch(「mainnet」, requestOptions)19.接著(回應 => response.text())20.接著(結果 => 控制台.log(結果))21.catchcatch(錯誤 => console.log('error', error));
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"method": "debug_storageRangeAt",8"params": ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],9"id": 1,10"jsonrpc": "2.0"11})12標題 = {13「Content-Type」: 'application/json'14}1516回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1718列印(回應.text)19
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"method": "debug_storageRangeAt",8"params": ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],9"id": 1,10"jsonrpc": "2.0"11})12標題 = {13「Content-Type」: 'application/json'14}1516回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1718列印(回應.text)19
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("mainnet")67http = 網::HTTP.new(url.主機, 網址.port);8請求 = 淨額::HTTP::POST.新增(網址)9請求["Content-Type"] = "application/json"10請求。主體 = JSON.dump({11"method": "debug_storageRangeAt",12"params": ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],13"id": 1,14"jsonrpc": "2.0"15})1617回應 = http.請求(請求)18puts 回應。read_body19
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("mainnet")67http = 網::HTTP.new(url.主機, 網址.port);8請求 = 淨額::HTTP::POST.新增(網址)9請求["Content-Type"] = "application/json"10請求。主體 = JSON.dump({11"method": "debug_storageRangeAt",12"params": ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],13"id": 1,14"jsonrpc": "2.0"15})1617回應 = http.請求(請求)18puts 回應。read_body19
1來源: web3 import Web3, HTTPProvider2provider = Web3.HTTPProvider("https://docs-demo.hype-mainnet.quiknode.pro/evm")3result = provider.make_request('debug_storageRangeAt', ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1])4print(result)
1來源: web3 import Web3, HTTPProvider2provider = Web3.HTTPProvider("https://docs-demo.hype-mainnet.quiknode.pro/evm")3result = provider.make_request('debug_storageRangeAt', ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1])4print(result)