/wallet/getexchangebyid REST API Endpoint
身體參數
id
整數
必填
載入中...
退貨
exchange_id
載入中...
creator_address
載入中...
create_time
載入中...
first_token_id
載入中...
first_token_balance
載入中...
second_token_id
載入中...
second_token_balance
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getexchangebyid \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '{5"id":16}7'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getexchangebyid \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '{5"id":16}7'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getexchangebyid';23const data = {4id: 15};67取得(url, {8方法: 'POST',9headers: {10'accept': 'application/json',11'content-type': 'application/json'12},13body: JSON.stringify(data)14})15.接著(回應 => response.json())16.then(data => console.log(data))17.catch(error => console.error(error));18
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getexchangebyid';23const data = {4id: 15};67取得(url, {8方法: 'POST',9headers: {10'accept': 'application/json',11'content-type': 'application/json'12},13body: JSON.stringify(data)14})15.接著(回應 => response.json())16.then(data => console.log(data))17.catch(error => console.error(error));18
1匯入 請求23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/getexchangebyid"45資料 = {6'id': 17}89標題 = {10'accept': 'application/json',11'content-type': 'application/json'12}1314response = requests.post(url, json=data, headers=headers)15print(response.json())16
1匯入 請求23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/getexchangebyid"45資料 = {6'id': 17}89標題 = {10'accept': 'application/json',11'content-type': 'application/json'12}1314response = requests.post(url, json=data, headers=headers)15print(response.json())16
1需要 "uri"2需要 "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getexchangebyid")67資料 = {8'id' => 19}1011標題 = {12'accept' => 'application/json',13'content-type' => 'application/json'14}1516http = Net::HTTP.new(url.host, url.port)17http.use_ssl = true1819request = Net::HTTP::Post.new(url.path, headers)20請求。正文 = data.to_json2122回應 = http.請求(請求)23將回應。正文
1需要 "uri"2需要 "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getexchangebyid")67資料 = {8'id' => 19}1011標題 = {12'accept' => 'application/json',13'content-type' => 'application/json'14}1516http = Net::HTTP.new(url.host, url.port)17http.use_ssl = true1819request = Net::HTTP::Post.new(url.path, headers)20請求。正文 = data.to_json2122回應 = http.請求(請求)23將回應。正文