/wallet/transferasset REST API Endpoint
身体参数
所有者地址
字符串
必填
正在加载...
to_address
字符串
必填
正在加载...
asset_name
字符串
必填
正在加载...
金额
整数
必填
正在加载...
permission_id
整数
正在加载...
visible
布尔型
正在加载...
extra_data
字符串
正在加载...
退货
visible
正在加载...
txid
正在加载...
raw_data
正在加载...
合同
正在加载...
parameter
正在加载...
值
正在加载...
金额
正在加载...
asset_name
正在加载...
所有者地址
正在加载...
to_address
正在加载...
type_url
正在加载...
类型
正在加载...
ref_block_bytes
正在加载...
ref_block_hash
正在加载...
到期
正在加载...
时间戳
正在加载...
raw_data_hex
正在加载...
请求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"to_address": "RECIEVER_ADDRESS",8"asset_name": "ASSET_NAME",9"amount": AMOUNT,10"visible": true11}12'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"to_address": "RECIEVER_ADDRESS",8"asset_name": "ASSET_NAME",9"amount": AMOUNT,10"visible": true11}12'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset';2const headers = {3'Accept': 'application/json',4“Content-Type”: 'application/json'5};67const 数据 = {8owner_address: 'OWNER_ADDRESS',9to_address: 'RECIEVER_ADDRESS',10asset_name: 'ASSET_NAME',11amount: AMOUNT,12visible: true13};1415fetch(url, {16方法: 'POST',17headers: headers,18body: JSON.stringify(data)19})20.then(response => response.json())21.then(result => {22console.log(result);23})24.catch(error => {25console.error(error);26});27
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset';2const headers = {3'Accept': 'application/json',4“Content-Type”: 'application/json'5};67const 数据 = {8owner_address: 'OWNER_ADDRESS',9to_address: 'RECIEVER_ADDRESS',10asset_name: 'ASSET_NAME',11amount: AMOUNT,12visible: true13};1415fetch(url, {16方法: 'POST',17headers: headers,18body: JSON.stringify(data)19})20.then(response => response.json())21.then(result => {22console.log(result);23})24.catch(error => {25console.error(error);26});27
1导入 请求23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset'45标题 = {6'accept': 'application/json',7'content-type': 'application/json'8}910data = {11'owner_address': 'OWNER_ADDRESS',12'to_address': 'RECIEVER_ADDRESS',13'asset_name': 'ASSET_NAME',14'amount': AMOUNT,15'visible': True16}1718response = requests.post(url, json=data, headers=headers)1920if response.status_code == 200:21print(response.json())22else:23print('Request failed with status code:', response.status_code)24
1导入 请求23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset'45标题 = {6'accept': 'application/json',7'content-type': 'application/json'8}910data = {11'owner_address': 'OWNER_ADDRESS',12'to_address': 'RECIEVER_ADDRESS',13'asset_name': 'ASSET_NAME',14'amount': AMOUNT,15'visible': True16}1718response = requests.post(url, json=data, headers=headers)1920if response.status_code == 200:21print(response.json())22else:23print('Request failed with status code:', response.status_code)24
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset')67http = Net::HTTP.new(url.主机, url.端口)8http.use_ssl = true910标题 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415data = {16'owner_address' => 'OWNER_ADDRESS',17'to_address' => 'RECIEVER_ADDRESS',18'asset_name' => 'ASSET_NAME',19'amount' => AMOUNT,20'visible' => true21}2223请求 = Net::HTTP::POST.new(网址)24request.body = data.to_json25headers.each { |key, value| request[key] = value }2627回复 = http.请求(请求)2829if response.code.to_i == 20030result = JSON.parse(response.body)31输出结果32else33puts "Request failed with status code: #{response.code}"34结束35
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset')67http = Net::HTTP.new(url.主机, url.端口)8http.use_ssl = true910标题 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415data = {16'owner_address' => 'OWNER_ADDRESS',17'to_address' => 'RECIEVER_ADDRESS',18'asset_name' => 'ASSET_NAME',19'amount' => AMOUNT,20'visible' => true21}2223请求 = Net::HTTP::POST.new(网址)24request.body = data.to_json25headers.each { |key, value| request[key] = value }2627回复 = http.请求(请求)2829if response.code.to_i == 20030result = JSON.parse(response.body)31输出结果32else33puts "Request failed with status code: #{response.code}"34结束35