/wallet/exchangetransaction REST API Endpoint
身体参数
owner_address
字符串
必填
正在加载...
exchange_id
字符串
必填
正在加载...
token_id
整数
必填
正在加载...
permission_id
整数
正在加载...
visible
布尔型
正在加载...
quant
整数
必填
正在加载...
expected
字符串
必填
正在加载...
退货
visible
正在加载...
txid
正在加载...
原始数据
正在加载...
合同
正在加载...
参数
正在加载...
值
正在加载...
金额
正在加载...
expected
正在加载...
exchange_id
正在加载...
owner_address
正在加载...
token_id
正在加载...
type_url
正在加载...
类型
正在加载...
ref_block_bytes
正在加载...
ref_block_hash
正在加载...
到期
正在加载...
时间戳
正在加载...
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.然后(响应 => 响应.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.然后(响应 => 响应.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())
1require "uri"2require "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
1require "uri"2require "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