trace_block 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.パラメータ
ブロック番号
文字列
必須
読み込み中...
返品
配列
配列
読み込み中...
action
オブジェクト
読み込み中...
出典
文字列
読み込み中...
callType
文字列
読み込み中...
gas
文字列
読み込み中...
入力
文字列
読み込み中...
~へ
文字列
読み込み中...
値
文字列
読み込み中...
blockHash
文字列
読み込み中...
ブロック番号
番号
読み込み中...
error
文字列
読み込み中...
結果
オブジェクト
読み込み中...
gasUsed
文字列
読み込み中...
output
文字列
読み込み中...
subtraces
番号
読み込み中...
traceAddress
配列
読み込み中...
トランザクションハッシュ
文字列
読み込み中...
transactionPosition
番号
読み込み中...
タイプ
文字列
読み込み中...
リクエスト
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"trace_block","params":["0x8979B2"],"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_block","params":["0x8979B2"],"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_block",7"params": ["0x8979B2"],8"id": "1"9}1011回答 = クライアント.送信(ペイロード.to_json)12レスポンスを格納する
1require 'eth'23client = Eth::Client.create 'https://docs-demo.hype-mainnet.quiknode.pro/evm'4ペイロード = {5「jsonrpc」: "2.0",6"method": "trace_block",7"params": ["0x8979B2"],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 response = await provider.send("trace_block", [5"0x8979B2",6]);7console.log(response);8})();
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hype-mainnet.quiknode.pro/evm");4const response = await provider.send("trace_block", [5"0x8979B2",6]);7console.log(response);8})();
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "trace_block",6"params": [7"0x8979B2"8],9"id": 1,10「jsonrpc」: "2.0"11});1213var requestOptions = {14メソッド: 'POST',15ヘッダー: myHeaders,16本文: raw,17リダイレクト: 'follow'18};1920fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)21.その後(レスポンス => レスポンス.text())22.その後(結果 => コンソール.log(result))23.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "trace_block",6"params": [7"0x8979B2"8],9"id": 1,10「jsonrpc」: "2.0"11});1213var requestOptions = {14メソッド: 'POST',15ヘッダー: myHeaders,16本文: raw,17リダイレクト: 'follow'18};1920fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)21.その後(レスポンス => レスポンス.text())22.その後(結果 => コンソール.log(result))23.catch(error => console.log('error', error));
1import リクエスト2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56ペイロード = json.dumps({7"method": "trace_block",8"params": [9"0x8979B2"10],11"id": 1,12「jsonrpc」: "2.0"13})14ヘッダー = {15「Content-Type」: 'application/json'16}1718回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)1920印刷(レスポンス.text)21
1import リクエスト2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56ペイロード = json.dumps({7"method": "trace_block",8"params": [9"0x8979B2"10],11"id": 1,12「jsonrpc」: "2.0"13})14ヘッダー = {15「Content-Type」: 'application/json'16}1718回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)1920印刷(レスポンス.text)21
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["Content-Type"] = "application/json"12リクエスト.本文 = JSON.dump({13"method": "trace_block",14"params": [15"0x8979B2"16],17"id": 1,18「jsonrpc」: "2.0"19})2021回答 = https.リクエスト(リクエスト)22レスポンスを格納する.read_body23
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["Content-Type"] = "application/json"12リクエスト.本文 = JSON.dump({13"method": "trace_block",14"params": [15"0x8979B2"16],17"id": 1,18「jsonrpc」: "2.0"19})2021回答 = https.リクエスト(リクエスト)22レスポンスを格納する.read_body23
1from web3 import HTTPProvider23client = HTTPProvider('https://docs-demo.hype-mainnet.quiknode.pro/evm')4result = client.make_request('trace_block', ['0x8979B2'])5print(result)6
1from web3 import HTTPProvider23client = HTTPProvider('https://docs-demo.hype-mainnet.quiknode.pro/evm')4result = client.make_request('trace_block', ['0x8979B2'])5print(result)6