/wallet/exchangetransaction REST API Endpoint
身體參數
owner_address
字串
必填
載入中...
exchange_id
字串
必填
載入中...
token_id
整數
必填
載入中...
permission_id
整數
載入中...
visible
布林值
載入中...
quant
整數
必填
載入中...
expected
字串
必填
載入中...
退貨
visible
載入中...
txid
載入中...
raw_data
載入中...
合約
載入中...
parameter
載入中...
值
載入中...
金額
載入中...
expected
載入中...
exchange_id
載入中...
owner_address
載入中...
token_id
載入中...
type_url
載入中...
類型
載入中...
ref_block_bytes
載入中...
ref_block_hash
載入中...
expiration
載入中...
時間戳記
載入中...
raw_data_hex
載入中...
簽名
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangetransaction \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"expected": 10,11"visible": true12}13'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangetransaction \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"expected": 10,11"visible": true12}13'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangetransaction';23const requestOptions = {4方法: 'POST',5headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' },6body: JSON.stringify({7owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',8exchange_id: 12,9token_id: '31303030343837',10quant: 100,11expected: 10,12visible: true13})14};1516fetch(url, requestOptions)17.接著(回應 => response.json())18.then(data => console.log(data))19.catch(error => console.log(error));20
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangetransaction';23const requestOptions = {4方法: 'POST',5headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' },6body: JSON.stringify({7owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',8exchange_id: 12,9token_id: '31303030343837',10quant: 100,11expected: 10,12visible: true13})14};1516fetch(url, requestOptions)17.接著(回應 => response.json())18.then(data => console.log(data))19.catch(error => console.log(error));20
1匯入 請求23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangetransaction"45有效載荷 = {6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"exchange_id": 12,8"token_id": "31303030343837",9"quant": 100,10"expected": 10,11"visible": True12}13標題 = {14"Content-Type": "application/json",15"Accept": "application/json"16}1718response = requests.post(url, json=payload, headers=headers)1920print(response.json())
1匯入 請求23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangetransaction"45有效載荷 = {6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"exchange_id": 12,8"token_id": "31303030343837",9"quant": 100,10"expected": 10,11"visible": True12}13標題 = {14"Content-Type": "application/json",15"Accept": "application/json"16}1718response = requests.post(url, json=payload, headers=headers)1920print(response.json())
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangetransaction")56payload = JSON.dump({7"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",8"exchange_id": 12,9"token_id": "31303030343837",10"quant": 100,11"expected": 10,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)24request.body = payload2526回應 = http.請求(請求)27將回應。read_body28
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangetransaction")56payload = JSON.dump({7"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",8"exchange_id": 12,9"token_id": "31303030343837",10"quant": 100,11"expected": 10,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)24request.body = payload2526回應 = http.請求(請求)27將回應。read_body28