trace_replayBlockTransactions RPC 方法
This method requires appending
/nanoreth to your HyperLiquid endpoint URL. Debug and Trace methods are not supported on /evm endpoints. Use /nanoreth instead of /evm to access tracing functionality.參數
區塊編號
字串
必填
載入中...
陣列
陣列
必填
載入中...
vmTrace
字串
載入中...
追蹤
字串
載入中...
stateDiff
字串
載入中...
退貨
陣列
陣列
載入中...
輸出
字串
載入中...
stateDiff
物件
載入中...
追蹤
陣列
載入中...
類型
字串
載入中...
動作
物件
載入中...
來自
字串
載入中...
呼叫類型
字串
載入中...
氣體
字串
載入中...
輸入
字串
載入中...
至
字串
載入中...
值
字串
載入中...
錯誤
字串
載入中...
結果
物件
載入中...
gasUsed
字串
載入中...
輸出
字串
載入中...
子軌跡
數字
載入中...
traceAddress
陣列
載入中...
vmTrace
物件
載入中...
交易哈希值
字串
載入中...
請求
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"trace_replayBlockTransactions","params":["0x8979B2",["trace"]],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"trace_replayBlockTransactions","params":["0x8979B2",["trace"]],"id":1,"jsonrpc":"2.0"}'
1需要 'eth'23client = Eth::Client.create 'https://docs-demo.hype-mainnet.quiknode.pro/evm'4有效載荷 = {5"jsonrpc": "2.0",6「方法」: "trace_replayBlockTransactions",7"params": ["0x8979B2",["trace"]],8"id": "1"9}1011回應 = 客戶.傳送(有效載荷.to_json)12將回應
1需要 'eth'23client = Eth::Client.create 'https://docs-demo.hype-mainnet.quiknode.pro/evm'4有效載荷 = {5"jsonrpc": "2.0",6「方法」: "trace_replayBlockTransactions",7"params": ["0x8979B2",["trace"]],8"id": "1"9}1011回應 = 客戶.傳送(有效載荷.to_json)12將回應
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 raw = JSON.stringify({5「方法」: "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正文: 原始,20redirect: 'follow'21};2223fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)24.then(response => response.text())25.then(result => console.log(result))26.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5「方法」: "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正文: 原始,20redirect: 'follow'21};2223fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)24.then(response => response.text())25.then(result => console.log(result))26.catch(error => console.log('error', error));
1匯入 請求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56有效載荷 = json.dumps({7「方法」: "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匯入 請求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56有效載荷 = json.dumps({7「方法」: "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"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13「方法」: "trace_replayBlockTransactions",14"params": [15"0x8979B2",16[17「trace」18]19],20"id": 1,21"jsonrpc": "2.0"22})2324回應 = https.請求(請求)25將回應。read_body26
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13「方法」: "trace_replayBlockTransactions",14"params": [15"0x8979B2",16[17「trace」18]19],20"id": 1,21"jsonrpc": "2.0"22})2324回應 = https.請求(請求)25將回應。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