/wallet/exchangeinject REST API Endpoint
身體參數
owner_address
字串
必填
載入中...
exchange_id
字串
必填
載入中...
token_id
整數
必填
載入中...
permission_id
整數
載入中...
visible
布林值
載入中...
quant
整數
必填
載入中...
退貨
結果
載入中...
訊息
載入中...
txID
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangeinject \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"exchange_id": 12,8"token_id": "TOKEN_ID",9"quant": 100,10"visible": true11}12'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangeinject \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"exchange_id": 12,8"token_id": "TOKEN_ID",9"quant": 100,10"visible": true11}12'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangeinject';23const data = {4owner_address: 'OWNER_ADDRESS',5exchange_id: 12,6token_id: 'TOKEN_ID',7quant: 100,8visible: true9};1011取得(url, {12方法: 'POST',13headers: {14'accept': 'application/json',15'content-type': 'application/json'16},17body: JSON.stringify(data)18})19.接著(回應 => response.json())20.then(data => console.log(data))21.catch(error => console.error(error));22
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangeinject';23const data = {4owner_address: 'OWNER_ADDRESS',5exchange_id: 12,6token_id: 'TOKEN_ID',7quant: 100,8visible: true9};1011取得(url, {12方法: 'POST',13headers: {14'accept': 'application/json',15'content-type': 'application/json'16},17body: JSON.stringify(data)18})19.接著(回應 => response.json())20.then(data => console.log(data))21.catch(error => console.error(error));22
1匯入 請求23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangeinject"45資料 = {6'owner_address': 'OWNER_ADDRESS',7'exchange_id': 12,8'token_id': 'TOKEN_ID',9'quant': 100,10'visible': True11}1213標題 = {14'accept': 'application/json',15'content-type': 'application/json'16}1718response = requests.post(url, json=data, headers=headers)19print(response.json())20
1匯入 請求23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangeinject"45資料 = {6'owner_address': 'OWNER_ADDRESS',7'exchange_id': 12,8'token_id': 'TOKEN_ID',9'quant': 100,10'visible': True11}1213標題 = {14'accept': 'application/json',15'content-type': 'application/json'16}1718response = requests.post(url, json=data, headers=headers)19print(response.json())20
1需要 "uri"2需要 "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangeinject")67資料 = {8"owner_address" => "OWNER_ADDRESS",9"exchange_id" => 12,10"token_id" => "TOKEN_ID",11"quant" => 100,12"visible" => true13}1415標題 = {16"accept" => "application/json",17"content-type" => "application/json"18}1920http = Net::HTTP.new(url.host, url.port)21http.use_ssl = true2223request = Net::HTTP::Post.new(url, headers)24請求。正文 = data.to_json2526回應 = http.請求(請求)2728將回應。正文29
1需要 "uri"2需要 "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangeinject")67資料 = {8"owner_address" => "OWNER_ADDRESS",9"exchange_id" => 12,10"token_id" => "TOKEN_ID",11"quant" => 100,12"visible" => true13}1415標題 = {16"accept" => "application/json",17"content-type" => "application/json"18}1920http = Net::HTTP.new(url.host, url.port)21http.use_ssl = true2223request = Net::HTTP::Post.new(url, headers)24請求。正文 = data.to_json2526回應 = http.請求(請求)2728將回應。正文29