/wallet/getexchangebyid REST API Endpoint
身体パラメータ
id
整数
必須
読み込み中...
返品
exchange_id
読み込み中...
作成者アドレス
読み込み中...
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};67fetch(url, {8メソッド: 'POST',9headers: {10'accept': 'application/json',11'content-type': 'application/json'12},13body: JSON.stringify(data)14})15.その後(レスポンス => レスポンス.json())16.その後(データ => コンソール.log(data))17.catchcatch(エラー => console.error(エラー));18
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getexchangebyid';23const data = {4id: 15};67fetch(url, {8メソッド: 'POST',9headers: {10'accept': 'application/json',11'content-type': 'application/json'12},13body: JSON.stringify(data)14})15.その後(レスポンス => レスポンス.json())16.その後(データ => コンソール.log(data))17.catchcatch(エラー => console.error(エラー));18
1import リクエスト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)15印刷(レスポンス.json())16
1import リクエスト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)15印刷(レスポンス.json())16
1require "uri"2require "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 = ネット::HTTP.new(url.ホスト, url.ポート)17http.use_ssl = true1819request = Net::HTTP::Post.new(url.path, headers)20リクエスト.本文 = data.to_json2122回答 = http.リクエスト(リクエスト)23レスポンスを格納する。body
1require "uri"2require "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 = ネット::HTTP.new(url.ホスト, url.ポート)17http.use_ssl = true1819request = Net::HTTP::Post.new(url.path, headers)20リクエスト.本文 = data.to_json2122回答 = http.リクエスト(リクエスト)23レスポンスを格納する。body