debug_storageRangeAt RPC Method
此方法需要追加
/nanoreth 到您的HyperLiquid endpoint 。在 /evm 端点。使用 /nanoreth 而不是 /evm 以访问调试功能。参数
blockHash
字符串
必填
正在加载...
txIndex
整数
必填
正在加载...
地址
字符串
必填
正在加载...
startKey
字符串
必填
正在加载...
上限
字符串
必填
正在加载...
退货
结果
对象
正在加载...
storage
对象
正在加载...
哈希
对象
正在加载...
key
字符串
正在加载...
值
字符串
正在加载...
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'23客户 = Eth::客户.创建 'mainnet'4有效载荷 = {5"jsonrpc": "2.0",6"method": "debug_storageRangeAt",7"params": ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],8"id": "1"9}1011回复 = 客户端.发送(有效载荷.to_json)12返回响应
1require 'eth'23客户 = Eth::客户.创建 'mainnet'4有效载荷 = {5"jsonrpc": "2.0",6"method": "debug_storageRangeAt",7"params": ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1],8"id": "1"9}1011回复 = 客户端.发送(有效载荷.to_json)12返回响应
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider(“mainnet”);4const response = await provider.send("debug_storageRangeAt", [5"0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",60,7"0x3ccC78545F675A188B7521F7f4b4791995752635",8"0x0000000000000000000000000000000000000000000000000000000000000000",91,10]);11控制台.日志(响应);12})();
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider(“mainnet”);4const response = await provider.send("debug_storageRangeAt", [5"0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",60,7"0x3ccC78545F675A188B7521F7f4b4791995752635",8"0x0000000000000000000000000000000000000000000000000000000000000000",91,10]);11控制台.日志(响应);12})();
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = 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正文: raw,15重定向: 'follow'16};1718fetch(“mainnet”, requestOptions)19.然后(响应 => 响应.text())20.然后(结果 => 控制台.log(result))21.catch(error => 控制台.log('error', error));
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = 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正文: raw,15重定向: 'follow'16};1718fetch(“mainnet”, requestOptions)19.然后(响应 => 响应.text())20.然后(结果 => 控制台.log(result))21.catch(error => 控制台.log('error', error));
1导入 请求2导入 json34url = "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, 数据=有效载荷)1718打印(响应.text)19
1导入 请求2导入 json34url = "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, 数据=有效载荷)1718打印(响应.text)19
1require "uri"2require "json"3require "net/http"45url = URI("mainnet")67http = Net::HTTP.new(url.主机, url.端口);8请求 = Net::HTTP::POST.new(网址)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.请求(请求)18返回响应.read_body19
1require "uri"2require "json"3require "net/http"45url = URI("mainnet")67http = Net::HTTP.new(url.主机, url.端口);8请求 = Net::HTTP::POST.new(网址)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.请求(请求)18返回响应.read_body19
1来源 web3 import Web3, HTTPProvider2提供商 = Web3.HTTPProvider(“mainnet”)3result = provider.make_request('debug_storageRangeAt', ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1])4打印(结果)
1来源 web3 import Web3, HTTPProvider2提供商 = Web3.HTTPProvider(“mainnet”)3result = provider.make_request('debug_storageRangeAt', ["0x54d353c9ebe37c05091f4e063d3f331e48cab4362ab0ff86f05ebea58138bf96",0,"0x3ccC78545F675A188B7521F7f4b4791995752635","0x0000000000000000000000000000000000000000000000000000000000000000",1])4打印(结果)