trace_replayBlockTransactions 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 tracing functionality.參數
區塊編號
字串
必填
載入中...
陣列
陣列
必填
載入中...
vmTrace
字串
載入中...
trace
字串
載入中...
stateDiff
字串
載入中...
退貨
陣列
陣列
載入中...
輸出
字串
載入中...
stateDiff
物件
載入中...
trace
陣列
載入中...
類型
字串
載入中...
動作
物件
載入中...
出自
字串
載入中...
callType
字串
載入中...
氣體
字串
載入中...
輸入
字串
載入中...
至
字串
載入中...
值
字串
載入中...
錯誤
字串
載入中...
結果
物件
載入中...
gasUsed
字串
載入中...
輸出
字串
載入中...
subtraces
數字
載入中...
traceAddress
陣列
載入中...
vmTrace
物件
載入中...
交易哈希值
字串
載入中...
請求
1curlmainnet\2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"trace_replayBlockTransactions","params":["0x8979B2",["trace"]],"id":1,"jsonrpc":"2.0"}'
1curlmainnet\2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"trace_replayBlockTransactions","params":["0x8979B2",["trace"]],"id":1,"jsonrpc":"2.0"}'
1require 'eth'23client = Eth::Client.create 'https://docs-demo.hype-mainnet.quiknode.pro/evm'4有效載荷 = {5"jsonrpc": "2.0",6"method": "trace_replayBlockTransactions",7"params": ["0x8979B2",["trace"]],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": "trace_replayBlockTransactions",7"params": ["0x8979B2",["trace"]],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 transactions = await provider.send("trace_replayBlockTransactions", [5"0x8979B2",6["trace"],7]);8console.log(transactions);9})();10
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hype-mainnet.quiknode.pro/evm");4const transactions = await provider.send("trace_replayBlockTransactions", [5"0x8979B2",6["trace"],7]);8console.log(transactions);9})();10
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var 原始 = JSON.stringify({5"method": "trace_replayBlockTransactions",6"params": [7"0x8979B2",8[9"trace"10]11],12"id": 1,13"jsonrpc": "2.0"14});1516var requestOptions = {17方法: 'POST',18標題: myHeaders,19正文: 原始,20重定向: '追蹤'21};2223fetch(「mainnet」, requestOptions)24.接著(回應 => response.text())25.接著(結果 => 控制台.log(結果))26.catchcatch(錯誤 => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var 原始 = JSON.stringify({5"method": "trace_replayBlockTransactions",6"params": [7"0x8979B2",8[9"trace"10]11],12"id": 1,13"jsonrpc": "2.0"14});1516var requestOptions = {17方法: 'POST',18標題: myHeaders,19正文: 原始,20重定向: '追蹤'21};2223fetch(「mainnet」, requestOptions)24.接著(回應 => response.text())25.接著(結果 => 控制台.log(結果))26.catchcatch(錯誤 => console.log('error', error));
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"method": "trace_replayBlockTransactions",8"params": [9"0x8979B2",10[11"trace"12]13],14"id": 1,15"jsonrpc": "2.0"16})17標題 = {18「Content-Type」: 'application/json'19}2021回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2223列印(回應.text)24
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"method": "trace_replayBlockTransactions",8"params": [9"0x8979B2",10[11"trace"12]13],14"id": 1,15"jsonrpc": "2.0"16})17標題 = {18「Content-Type」: 'application/json'19}2021回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2223列印(回應.text)24
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("mainnet")67https = 網::HTTP.new(url.主機, 網址.port)8https.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11請求["Content-Type"] = "application/json"12請求。主體 = JSON.dump({13"method": "trace_replayBlockTransactions",14"params": [15"0x8979B2",16[17"trace"18]19],20"id": 1,21"jsonrpc": "2.0"22})2324回應 = https.請求(請求)25puts 回應。read_body26
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("mainnet")67https = 網::HTTP.new(url.主機, 網址.port)8https.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11請求["Content-Type"] = "application/json"12請求。主體 = JSON.dump({13"method": "trace_replayBlockTransactions",14"params": [15"0x8979B2",16[17"trace"18]19],20"id": 1,21"jsonrpc": "2.0"22})2324回應 = https.請求(請求)25puts 回應。read_body26
1from web3 import HTTPProvider23client = HTTPProvider('https://docs-demo.hype-mainnet.quiknode.pro/evm')4result = client.make_request('trace_replayBlockTransactions', ['0x8979B2',['trace']])5print(result)6
1from web3 import HTTPProvider23client = HTTPProvider('https://docs-demo.hype-mainnet.quiknode.pro/evm')4result = client.make_request('trace_replayBlockTransactions', ['0x8979B2',['trace']])5print(result)6