/walletsolidity/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/walletsolidity/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/walletsolidity/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/walletsolidity/getexchangebyid';23const 数据 = {4id: 15};67fetch(url, {8方法: 'POST',9headers: {10'accept': 'application/json',11'content-type': 'application/json'12},13body: JSON.stringify(data)14})15.then(response => response.json())16.then(data => console.log(data))17.catch(error => console.error(error));18
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getexchangebyid';23const 数据 = {4id: 15};67fetch(url, {8方法: 'POST',9headers: {10'accept': 'application/json',11'content-type': 'application/json'12},13body: JSON.stringify(data)14})15.then(response => response.json())16.then(data => console.log(data))17.catch(error => console.error(error));18
1导入 请求23url = "https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getexchangebyid"45data = {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/walletsolidity/getexchangebyid"45data = {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
1require "uri"2require "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getexchangebyid")67data = {8'id' => 19}1011标题 = {12'accept' => 'application/json',13'content-type' => 'application/json'14}1516http = Net::HTTP.new(url.主机, url.端口)17http.use_ssl = true1819request = Net::HTTP::Post.new(url.path, headers)20request.body = data.to_json2122回复 = http.请求(请求)23返回响应。正文
1require "uri"2require "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getexchangebyid")67data = {8'id' => 19}1011标题 = {12'accept' => 'application/json',13'content-type' => 'application/json'14}1516http = Net::HTTP.new(url.主机, url.端口)17http.use_ssl = true1819request = Net::HTTP::Post.new(url.path, headers)20request.body = data.to_json2122回复 = http.请求(请求)23返回响应。正文