/wallet/gettransactionbyid REST API Endpoint
身體參數
值
字串
必填
載入中...
visible
布林值
載入中...
退貨
ret
載入中...
contractRet
載入中...
簽名
載入中...
txID
載入中...
raw_data
載入中...
contract
載入中...
parameter
載入中...
值
載入中...
金額
載入中...
所有者地址
載入中...
to_address
載入中...
type_url
載入中...
類型
載入中...
ref_block_bytes
載入中...
ref_block_hash
載入中...
到期日
載入中...
fee_limit
載入中...
時間戳記
載入中...
raw_data_hex
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/gettransactionbyid \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc",7"visible": true8}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/gettransactionbyid \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc",7"visible": true8}9'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/gettransactionbyid';2const headers = {3'Accept': 'application/json',4「Content-Type」: 'application/json'5};67const 資料 = {8value: '7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc',9visible: true10};1112fetch(url, {13方法: 'POST',14headers: headers,15body: JSON.stringify(data)16})17.then(response => response.json())18.then(result => {19console.log(result);20})21.catch(error => {22console.error(error);23});24
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/gettransactionbyid';2const headers = {3'Accept': 'application/json',4「Content-Type」: 'application/json'5};67const 資料 = {8value: '7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc',9visible: true10};1112fetch(url, {13方法: 'POST',14headers: headers,15body: JSON.stringify(data)16})17.then(response => response.json())18.then(result => {19console.log(result);20})21.catch(error => {22console.error(error);23});24
1匯入 請求23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/gettransactionbyid'45標題 = {6'accept': 'application/json',7'content-type': 'application/json'8}910data = {11"value": "7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc",12"visible": True13}1415response = requests.post(url, json=data, headers=headers)1617if response.status_code == 200:18print(response.json())19else:20print("Request failed with status code:", response.status_code)21
1匯入 請求23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/gettransactionbyid'45標題 = {6'accept': 'application/json',7'content-type': 'application/json'8}910data = {11"value": "7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc",12"visible": True13}1415response = requests.post(url, json=data, headers=headers)1617if response.status_code == 200:18print(response.json())19else:20print("Request failed with status code:", response.status_code)21
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/gettransactionbyid')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910標題 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415data = {16value: '7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc',17visible: true18}1920請求 = 淨額::HTTP::POST.新增(網址)21request.body = data.to_json22headers.each { |key, value| request[key] = value }2324回應 = http.請求(請求)2526if response.code.to_i == 20027result = JSON.parse(response.body)28puts result29else30puts "Request failed with status code: #{response.code}"31結束32
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/gettransactionbyid')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910標題 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415data = {16value: '7c2d4206c03a883dd9066d620335dc1be272a8dc733cfa3f6d10308faa37facc',17visible: true18}1920請求 = 淨額::HTTP::POST.新增(網址)21request.body = data.to_json22headers.each { |key, value| request[key] = value }2324回應 = http.請求(請求)2526if response.code.to_i == 20027result = JSON.parse(response.body)28puts result29else30puts "Request failed with status code: #{response.code}"31結束32