/walletsolidity/GetTransactionInfoById REST API Endpoint
身體參數
值
整數
必填
載入中...
退貨
id
載入中...
fee
載入中...
區塊編號
載入中...
blockTimeStamp
載入中...
contractResult
載入中...
contract_address
載入中...
receipt
載入中...
結果
載入中...
net_fee
載入中...
energy_fee
載入中...
energy_usage
載入中...
energy_usage_total
載入中...
internal_transactions
載入中...
caller_address
載入中...
註
載入中...
transferTo_address
載入中...
callValueInfo
載入中...
callValue
載入中...
hash
載入中...
日誌
載入中...
地址
載入中...
資料
載入中...
主題
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/gettransactioninfobyid \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "d7a08e7b28755d294bfb1a0dfd3e3540971269534651059dd8c3d3f53e540e8a"7}8'
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/gettransactioninfobyid \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "d7a08e7b28755d294bfb1a0dfd3e3540971269534651059dd8c3d3f53e540e8a"7}8'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/gettransactioninfobyid';2const 標頭 = {3「接受」: 'application/json',4「Content-Type」: 'application/json'5};67const data = {8value: 'd7a08e7b28755d294bfb1a0dfd3e3540971269534651059dd8c3d3f53e540e8a'9};1011取得(url, {12方法: 'POST',13標題: 標頭:,14body: JSON.stringify(data)15})16.接著(回應 => response.json())17.接著(結果 => {18控制台.日誌(結果);19})20.catchcatch(錯誤 => {21控制台.錯誤(錯誤);22});23
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/gettransactioninfobyid';2const 標頭 = {3「接受」: 'application/json',4「Content-Type」: 'application/json'5};67const data = {8value: 'd7a08e7b28755d294bfb1a0dfd3e3540971269534651059dd8c3d3f53e540e8a'9};1011取得(url, {12方法: 'POST',13標題: 標頭:,14body: JSON.stringify(data)15})16.接著(回應 => response.json())17.接著(結果 => {18控制台.日誌(結果);19})20.catchcatch(錯誤 => {21控制台.錯誤(錯誤);22});23
1匯入 請求23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/gettransactioninfobyid'45標題 = {6「接受」: 'application/json',7'content-type': 'application/json'8}910資料 = {11'value': 'd7a08e7b28755d294bfb1a0dfd3e3540971269534651059dd8c3d3f53e540e8a'12}1314response = requests.post(url, json=data, headers=headers)1516if response.status_code == 200:17print(response.json())18else:19print('Request failed with status code:', response.status_code)20
1匯入 請求23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/gettransactioninfobyid'45標題 = {6「接受」: 'application/json',7'content-type': 'application/json'8}910資料 = {11'value': 'd7a08e7b28755d294bfb1a0dfd3e3540971269534651059dd8c3d3f53e540e8a'12}1314response = requests.post(url, json=data, headers=headers)1516if response.status_code == 200:17print(response.json())18else:19print('Request failed with status code:', response.status_code)20
1需要 'net/http'2require 'json'3需要 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/gettransactioninfobyid')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910標題 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415資料 = {16'value' => 'd7a08e7b28755d294bfb1a0dfd3e3540971269534651059dd8c3d3f53e540e8a'17}1819請求 = 淨::HTTP::POST.new(網址)20請求。正文 = data.to_json21headers.each { |key, value| request[key] = value }2223回應 = http.請求(請求)2425if response.code.to_i == 20026result = JSON.parse(response.body)27puts result28else29puts "Request failed with status code: #{response.code}"30結束31
1需要 'net/http'2require 'json'3需要 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/gettransactioninfobyid')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910標題 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415資料 = {16'value' => 'd7a08e7b28755d294bfb1a0dfd3e3540971269534651059dd8c3d3f53e540e8a'17}1819請求 = 淨::HTTP::POST.new(網址)20請求。正文 = data.to_json21headers.each { |key, value| request[key] = value }2223回應 = http.請求(請求)2425if response.code.to_i == 20026result = JSON.parse(response.body)27puts result28else29puts "Request failed with status code: #{response.code}"30結束31