debug_traceCall RPC Method
此 RPC 方法包含在免費試用版中,但使用量有限。請升級您的方案以獲得完整使用權限及更高的使用上限。請至我們的定價頁面了解更多資訊。
參數
物件
物件
必填
載入中...
出自
字串
載入中...
至
字串
必填
載入中...
氣體
字串
載入中...
maxFeePerGas
字串
載入中...
maxPriorityFeePerGas
字串
載入中...
值
字串
載入中...
輸入
字串
載入中...
資料
字串
載入中...
非重複數
字串
載入中...
chainId
字串
載入中...
accessList
陣列
載入中...
blockReference
字串
必填
載入中...
物件
物件
必填
載入中...
追蹤器
字串
載入中...
callTracer
字串
載入中...
prestateTracer
字串
載入中...
tracerConfig
物件
載入中...
onlyTopCall
布林值
載入中...
timeout
字串
載入中...
退貨
類型
字串
載入中...
出自
字串
載入中...
至
字串
載入中...
值
字串
載入中...
氣體
字串
載入中...
gasUsed
字串
載入中...
輸入
字串
載入中...
輸出
字串
載入中...
錯誤
字串
載入中...
撤銷原因
字串
載入中...
請求
1curl -X POST "https://docs-demo.monad-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "debug_traceCall",6"params": [7{8"from": "0x0000000000000000000000000000000000000000",9"to": "0x6b175474e89094c44da98b954eedeac495271d0f",10"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"11},12"latest",13{14"tracer": "callTracer"15}16],17"id": 118}'
1curl -X POST "https://docs-demo.monad-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "debug_traceCall",6"params": [7{8"from": "0x0000000000000000000000000000000000000000",9"to": "0x6b175474e89094c44da98b954eedeac495271d0f",10"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"11},12"latest",13{14"tracer": "callTracer"15}16],17"id": 118}'
1import { ethers } from "ethers";23async 函式 main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.monad-mainnet.quiknode.pro/");5const response = await provider.send("debug_traceCall", [6{7「來自」: "0x0000000000000000000000000000000000000000",8"to": "0x6b175474e89094c44da98b954eedeac495271d0f",9"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"10},11"latest",12{13"tracer": "callTracer"14}15]);16控制台.日誌(回應);17}1819主頁();
1import { ethers } from "ethers";23async 函式 main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.monad-mainnet.quiknode.pro/");5const response = await provider.send("debug_traceCall", [6{7「來自」: "0x0000000000000000000000000000000000000000",8"to": "0x6b175474e89094c44da98b954eedeac495271d0f",9"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"10},11"latest",12{13"tracer": "callTracer"14}15]);16控制台.日誌(回應);17}1819主頁();
1來源: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.monad-mainnet.quiknode.pro/'))3response = w3.provider.make_request("debug_traceCall", [{"from":"0x0000000000000000000000000000000000000000","to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"},"latest",{"tracer":"callTracer"}])4列印(回應)
1來源: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.monad-mainnet.quiknode.pro/'))3response = w3.provider.make_request("debug_traceCall", [{"from":"0x0000000000000000000000000000000000000000","to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"},"latest",{"tracer":"callTracer"}])4列印(回應)
1匯入 { 建立公開客戶端, http } 來自 'viem'23async 函式 main() {4const 客戶端 = 建立公開客戶端({5transport: http('https://docs-demo.monad-mainnet.quiknode.pro/')6})78const 結果 = await client.request({9method: 'debug_traceCall',10參數: [11{12"from": "0x0000000000000000000000000000000000000000",13"to": "0x6b175474e89094c44da98b954eedeac495271d0f",14"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"15},16"latest",17{18"tracer": "callTracer"19}20]21})2223控制台.日誌(結果)24}2526主頁()
1匯入 { 建立公開客戶端, http } 來自 'viem'23async 函式 main() {4const 客戶端 = 建立公開客戶端({5transport: http('https://docs-demo.monad-mainnet.quiknode.pro/')6})78const 結果 = await client.request({9method: 'debug_traceCall',10參數: [11{12"from": "0x0000000000000000000000000000000000000000",13"to": "0x6b175474e89094c44da98b954eedeac495271d0f",14"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"15},16"latest",17{18"tracer": "callTracer"19}20]21})2223控制台.日誌(結果)24}2526主頁()
1import { QuicknodeSdk } from '@quicknode/sdk'23const qn = new QuicknodeSdk({})45const result = await qn.rpc.call(6'debug_traceCall',7[8{9"from": "0x0000000000000000000000000000000000000000",10"to": "0x6b175474e89094c44da98b954eedeac495271d0f",11"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"12},13"latest",14{15"tracer": "callTracer"16}17],18undefined,19'https://docs-demo.monad-mainnet.quiknode.pro/'20)2122console.log(result)
1import { QuicknodeSdk } from '@quicknode/sdk'23const qn = new QuicknodeSdk({})45const result = await qn.rpc.call(6'debug_traceCall',7[8{9"from": "0x0000000000000000000000000000000000000000",10"to": "0x6b175474e89094c44da98b954eedeac495271d0f",11"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"12},13"latest",14{15"tracer": "callTracer"16}17],18undefined,19'https://docs-demo.monad-mainnet.quiknode.pro/'20)2122console.log(result)
1import asyncio2from quicknode_sdk import QuicknodeSdk, SdkFullConfig34async def main():5qn = QuicknodeSdk(SdkFullConfig(api_key=None))6result = await qn.rpc.call(7"debug_traceCall",8[9{10"from": "0x0000000000000000000000000000000000000000",11"to": "0x6b175474e89094c44da98b954eedeac495271d0f",12"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"13},14"latest",15{16"tracer": "callTracer"17}18],19endpoint_url="https://docs-demo.monad-mainnet.quiknode.pro/",20)21print(result)2223asyncio.run(main())
1import asyncio2from quicknode_sdk import QuicknodeSdk, SdkFullConfig34async def main():5qn = QuicknodeSdk(SdkFullConfig(api_key=None))6result = await qn.rpc.call(7"debug_traceCall",8[9{10"from": "0x0000000000000000000000000000000000000000",11"to": "0x6b175474e89094c44da98b954eedeac495271d0f",12"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"13},14"latest",15{16"tracer": "callTracer"17}18],19endpoint_url="https://docs-demo.monad-mainnet.quiknode.pro/",20)21print(result)2223asyncio.run(main())
1require "quicknode_sdk"23qn = QuicknodeSdk::SDK.from_config(api_key: nil)45result = qn.rpc.call(6method: "debug_traceCall",7params: [8{9"from" => "0x0000000000000000000000000000000000000000",10"to" => "0x6b175474e89094c44da98b954eedeac495271d0f",11"data" => "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"12},13"latest",14{15"tracer" => "callTracer"16}17],18endpoint_url: "https://docs-demo.monad-mainnet.quiknode.pro/"19)2021puts result
1require "quicknode_sdk"23qn = QuicknodeSdk::SDK.from_config(api_key: nil)45result = qn.rpc.call(6method: "debug_traceCall",7params: [8{9"from" => "0x0000000000000000000000000000000000000000",10"to" => "0x6b175474e89094c44da98b954eedeac495271d0f",11"data" => "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"12},13"latest",14{15"tracer" => "callTracer"16}17],18endpoint_url: "https://docs-demo.monad-mainnet.quiknode.pro/"19)2021puts result
1use quicknode_sdk::{QuicknodeSdk, SdkFullConfig};23#[tokio::main]4async fn main() -> Result<(), Box<dyn std::error::Error>> {5let qn = QuicknodeSdk::new(&SdkFullConfig::keyless())?;6let result = qn7.rpc8.call(9"debug_traceCall",10Some(serde_json::json!([11{12「來自」: "0x0000000000000000000000000000000000000000",13"to": "0x6b175474e89094c44da98b954eedeac495271d0f",14"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"15},16"latest",17{18"tracer": "callTracer"19}20])),21None,22Some("https://docs-demo.monad-mainnet.quiknode.pro/".into()),23)24.await?;2526println!("{result}");27Ok(())28}
1use quicknode_sdk::{QuicknodeSdk, SdkFullConfig};23#[tokio::main]4async fn main() -> Result<(), Box<dyn std::error::Error>> {5let qn = QuicknodeSdk::new(&SdkFullConfig::keyless())?;6let result = qn7.rpc8.call(9"debug_traceCall",10Some(serde_json::json!([11{12「來自」: "0x0000000000000000000000000000000000000000",13"to": "0x6b175474e89094c44da98b954eedeac495271d0f",14"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"15},16"latest",17{18"tracer": "callTracer"19}20])),21None,22Some("https://docs-demo.monad-mainnet.quiknode.pro/".into()),23)24.await?;2526println!("{result}");27Ok(())28}
1const 正文 = {2jsonrpc: '2.0',3method: 'debug_traceCall',4params: [{"from":"0x0000000000000000000000000000000000000000","to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"},"latest",{"tracer":"callTracer"}],5id: 16}78async 函式 main() {9const response = await fetch('https://docs-demo.monad-mainnet.quiknode.pro/', {10方法: 'POST',11headers: {'Content-Type': 'application/json'},12正文: JSON.stringify(body)13})14const 資料 = await response.json()15控制台.日誌(資料)16}1718主頁()
1const 正文 = {2jsonrpc: '2.0',3method: 'debug_traceCall',4params: [{"from":"0x0000000000000000000000000000000000000000","to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"},"latest",{"tracer":"callTracer"}],5id: 16}78async 函式 main() {9const response = await fetch('https://docs-demo.monad-mainnet.quiknode.pro/', {10方法: 'POST',11headers: {'Content-Type': 'application/json'},12正文: JSON.stringify(body)13})14const 資料 = await response.json()15控制台.日誌(資料)16}1718主頁()
1匯入 請求2匯入 json34url = "https://docs-demo.monad-mainnet.quiknode.pro/"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"method": "debug_traceCall",9"params": [10{11"from": "0x0000000000000000000000000000000000000000",12"to": "0x6b175474e89094c44da98b954eedeac495271d0f",13"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"14},15"latest",16{17"tracer": "callTracer"18}19],20"id": 121})22標題 = {23「Content-Type」: 'application/json'24}2526回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2728列印(回應.text)
1匯入 請求2匯入 json34url = "https://docs-demo.monad-mainnet.quiknode.pro/"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"method": "debug_traceCall",9"params": [10{11"from": "0x0000000000000000000000000000000000000000",12"to": "0x6b175474e89094c44da98b954eedeac495271d0f",13"data": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"14},15"latest",16{17"tracer": "callTracer"18}19],20"id": 121})22標題 = {23「Content-Type」: 'application/json'24}2526回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2728列印(回應.text)
1需要 "uri"2require "json"3需要 "net/http"45uri = URI("https://docs-demo.monad-mainnet.quiknode.pro/")67有效載荷 = {8jsonrpc: "2.0",9id: 1,10method: "debug_traceCall",11params: [{"from":"0x0000000000000000000000000000000000000000","to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"},"latest",{"tracer":"callTracer"}]12}1314請求 = 淨額::HTTP::POST.新增(URI)15請求["Content-Type"] = "application/json"16請求。主體 = JSON.generate(有效載荷)1718回應 = 淨::HTTP.開始(uri.主機, uri.port, use_ssl: true) 執行 |http|19http.請求(請求)20結束2122puts 回應。正文
1需要 "uri"2require "json"3需要 "net/http"45uri = URI("https://docs-demo.monad-mainnet.quiknode.pro/")67有效載荷 = {8jsonrpc: "2.0",9id: 1,10method: "debug_traceCall",11params: [{"from":"0x0000000000000000000000000000000000000000","to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"},"latest",{"tracer":"callTracer"}]12}1314請求 = 淨額::HTTP::POST.新增(URI)15請求["Content-Type"] = "application/json"16請求。主體 = JSON.generate(有效載荷)1718回應 = 淨::HTTP.開始(uri.主機, uri.port, use_ssl: true) 執行 |http|19http.請求(請求)20結束2122puts 回應。正文
回應
1{2"jsonrpc": "2.0",3"result": {4"type": "CALL",5"from": "0x0000000000000000000000000000000000000000",6"to": "0x6b175474e89094c44da98b954eedeac495271d0f",7"value": "0x0",8"gas": "0x7b98a0",9"gasUsed": "0x7b98a0",10"input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"11},12"id": 113}
1{2"jsonrpc": "2.0",3"result": {4"type": "CALL",5"from": "0x0000000000000000000000000000000000000000",6"to": "0x6b175474e89094c44da98b954eedeac495271d0f",7"value": "0x0",8"gas": "0x7b98a0",9"gasUsed": "0x7b98a0",10"input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"11},12"id": 113}