debug_traceCall RPC Method
매개변수
객체
객체
로딩 중...
출처:
문자열
로딩 중...
~에
문자열
로딩 중...
가스
정수
로딩 중...
가스 가격
정수
로딩 중...
값
정수
로딩 중...
데이터
문자열
로딩 중...
blockReference
문자열
로딩 중...
tracerObject
객체
필수
로딩 중...
tracer
문자열
로딩 중...
tracerConfig
객체
로딩 중...
onlyTopCall
부울
로딩 중...
반품
결과
객체
로딩 중...
출처:
문자열
로딩 중...
가스
문자열
로딩 중...
가스 사용량
문자열
로딩 중...
~에
문자열
로딩 중...
입력
문자열
로딩 중...
값
문자열
로딩 중...
유형
문자열
로딩 중...
요청
1curl -X POST "https://docs-demo.plasma-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "debug_traceCall",6"params": [7{8"to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b",9"gas": "0x0",10"gasPrice": "0x0",11"value": "0x0",12"data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"13},14"0xBA2CD",15{16"tracer": "callTracer",17"tracerConfig": {18"onlyTopCall": false19}20}21],22"id": 123}'
1curl -X POST "https://docs-demo.plasma-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "debug_traceCall",6"params": [7{8"to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b",9"gas": "0x0",10"gasPrice": "0x0",11"value": "0x0",12"data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"13},14"0xBA2CD",15{16"tracer": "callTracer",17"tracerConfig": {18"onlyTopCall": false19}20}21],22"id": 123}'
1import { ethers } from "ethers";23async 함수 main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.plasma-mainnet.quiknode.pro/");5const response = await provider.send("debug_traceCall", [6{7"to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b",8"가스": "0x0",9"gasPrice": "0x0",10"value": "0x0",11"data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"12},13"0xBA2CD",14{15"tracer": "callTracer",16"tracerConfig": {17"onlyTopCall": false18}19}20]);21콘솔.log(응답);22}2324main();
1import { ethers } from "ethers";23async 함수 main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.plasma-mainnet.quiknode.pro/");5const response = await provider.send("debug_traceCall", [6{7"to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b",8"가스": "0x0",9"gasPrice": "0x0",10"value": "0x0",11"data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"12},13"0xBA2CD",14{15"tracer": "callTracer",16"tracerConfig": {17"onlyTopCall": false18}19}20]);21콘솔.log(응답);22}2324main();
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.plasma-mainnet.quiknode.pro/'))3response = w3.provider.make_request("debug_traceCall", [{"to":"0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b","gas":"0x0","gasPrice":"0x0","value":"0x0","data":"0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"},"0xBA2CD",{"tracer":"callTracer","tracerConfig":{"onlyTopCall":False}}])4인쇄(응답)
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.plasma-mainnet.quiknode.pro/'))3response = w3.provider.make_request("debug_traceCall", [{"to":"0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b","gas":"0x0","gasPrice":"0x0","value":"0x0","data":"0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"},"0xBA2CD",{"tracer":"callTracer","tracerConfig":{"onlyTopCall":False}}])4인쇄(응답)
1import { createPublicClient, http } from 'viem'23async 함수 main() {4const client = createPublicClient({5운송: http('https://docs-demo.plasma-mainnet.quiknode.pro/')6})78const result = await client.request({9method: 'debug_traceCall',10params: [11{12"to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b",13"gas": "0x0",14"gasPrice": "0x0",15"value": "0x0",16"data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"17},18"0xBA2CD",19{20"tracer": "callTracer",21"tracerConfig": {22"onlyTopCall": false23}24}25]26})2728콘솔.log(결과)29}3031main()
1import { createPublicClient, http } from 'viem'23async 함수 main() {4const client = createPublicClient({5운송: http('https://docs-demo.plasma-mainnet.quiknode.pro/')6})78const result = await client.request({9method: 'debug_traceCall',10params: [11{12"to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b",13"gas": "0x0",14"gasPrice": "0x0",15"value": "0x0",16"data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"17},18"0xBA2CD",19{20"tracer": "callTracer",21"tracerConfig": {22"onlyTopCall": false23}24}25]26})2728콘솔.log(결과)29}3031main()
1import { Core } from '@quicknode/sdk'23const core = new Core({4endpointUrl: "https://docs-demo.plasma-mainnet.quiknode.pro/",5})67핵심.클라이언트8.요청({9method: 'debug_traceCall',10params: [{"to":"0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b","gas":"0x0","gasPrice":"0x0","value":"0x0","data":"0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"},"0xBA2CD",{"tracer":"callTracer","tracerConfig":{"onlyTopCall":false}}]11})12.그런 다음(res => console.log(res))
1import { Core } from '@quicknode/sdk'23const core = new Core({4endpointUrl: "https://docs-demo.plasma-mainnet.quiknode.pro/",5})67핵심.클라이언트8.요청({9method: 'debug_traceCall',10params: [{"to":"0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b","gas":"0x0","gasPrice":"0x0","value":"0x0","data":"0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"},"0xBA2CD",{"tracer":"callTracer","tracerConfig":{"onlyTopCall":false}}]11})12.그런 다음(res => console.log(res))
1const 본문 = {2jsonrpc: '2.0',3method: 'debug_traceCall',4params: [{"to":"0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b","gas":"0x0","gasPrice":"0x0","value":"0x0","data":"0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"},"0xBA2CD",{"tracer":"callTracer","tracerConfig":{"onlyTopCall":false}}],5id: 16}78async 함수 main() {9const response = await fetch('https://docs-demo.plasma-mainnet.quiknode.pro/', {10메서드: 'POST',11headers: {'Content-Type': 'application/json'},12본문: JSON.stringify(body)13})14const data = await response.json()15콘솔.log(데이터)16}1718main()
1const 본문 = {2jsonrpc: '2.0',3method: 'debug_traceCall',4params: [{"to":"0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b","gas":"0x0","gasPrice":"0x0","value":"0x0","data":"0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"},"0xBA2CD",{"tracer":"callTracer","tracerConfig":{"onlyTopCall":false}}],5id: 16}78async 함수 main() {9const response = await fetch('https://docs-demo.plasma-mainnet.quiknode.pro/', {10메서드: 'POST',11headers: {'Content-Type': 'application/json'},12본문: JSON.stringify(body)13})14const data = await response.json()15콘솔.log(데이터)16}1718main()
1import 요청2import json34url = "https://docs-demo.plasma-mainnet.quiknode.pro/"56페이로드 = json.dumps({7"jsonrpc": "2.0",8"method": "debug_traceCall",9"params": [10{11"to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b",12"gas": "0x0",13"gasPrice": "0x0",14"value": "0x0",15"data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"16},17"0xBA2CD",18{19"tracer": "callTracer",20"tracerConfig": {21"onlyTopCall": False22}23}24],25"id": 126})27헤더 = {28'Content-Type': 'application/json'29}3031답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)3233인쇄(응답.text)
1import 요청2import json34url = "https://docs-demo.plasma-mainnet.quiknode.pro/"56페이로드 = json.dumps({7"jsonrpc": "2.0",8"method": "debug_traceCall",9"params": [10{11"to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b",12"gas": "0x0",13"gasPrice": "0x0",14"value": "0x0",15"data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"16},17"0xBA2CD",18{19"tracer": "callTracer",20"tracerConfig": {21"onlyTopCall": False22}23}24],25"id": 126})27헤더 = {28'Content-Type': 'application/json'29}3031답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)3233인쇄(응답.text)
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.plasma-mainnet.quiknode.pro/")67페이로드 = {8jsonrpc: "2.0",9id: 1,10method: "debug_traceCall",11params: [{"to":"0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b","gas":"0x0","gasPrice":"0x0","value":"0x0","data":"0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"},"0xBA2CD",{"tracer":"callTracer","tracerConfig":{"onlyTopCall":false}}]12}1314요청 = 순::HTTP::POST.새(URI)15요청["Content-Type"] = "application/json"16요청.본문 = JSON.생성(페이로드)1718답변 = 순::HTTP.시작(uri.host, uri.port, use_ssl: true) do |http|19http.요청(요청)20끝2122응답을 넣습니다.본문
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.plasma-mainnet.quiknode.pro/")67페이로드 = {8jsonrpc: "2.0",9id: 1,10method: "debug_traceCall",11params: [{"to":"0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b","gas":"0x0","gasPrice":"0x0","value":"0x0","data":"0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"},"0xBA2CD",{"tracer":"callTracer","tracerConfig":{"onlyTopCall":false}}]12}1314요청 = 순::HTTP::POST.새(URI)15요청["Content-Type"] = "application/json"16요청.본문 = JSON.생성(페이로드)1718답변 = 순::HTTP.시작(uri.host, uri.port, use_ssl: true) do |http|19http.요청(요청)20끝2122응답을 넣습니다.본문
답변
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"calls": "0x0",6"error": "0x0",7"from": "0x0",8"gas": "0x0",9"gasUsed": "0x0",10"input": "0x0",11"output": "0x0",12"revertReason": "0x0",13"to": "0x0",14"type": "0x0",15"value": "0x0"16}17}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"calls": "0x0",6"error": "0x0",7"from": "0x0",8"gas": "0x0",9"gasUsed": "0x0",10"input": "0x0",11"output": "0x0",12"revertReason": "0x0",13"to": "0x0",14"type": "0x0",15"value": "0x0"16}17}