/wallet/transferasset REST API Endpoint
Body Parameters
owner_address
string
REQUIRED
Loading...
to_address
string
REQUIRED
Loading...
asset_name
string
REQUIRED
Loading...
amount
integer
REQUIRED
Loading...
permission_id
integer
Loading...
visible
boolean
Loading...
extra_data
string
Loading...
Returns
visible
Loading...
txid
Loading...
raw_data
Loading...
contract
Loading...
parameter
Loading...
value
Loading...
amount
Loading...
asset_name
Loading...
owner_address
Loading...
to_address
Loading...
type_url
Loading...
type
Loading...
ref_block_bytes
Loading...
ref_block_hash
Loading...
expiration
Loading...
timestamp
Loading...
raw_data_hex
Loading...
Request
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 data = {8owner_address: 'OWNER_ADDRESS',9to_address: 'RECIEVER_ADDRESS',10asset_name: 'ASSET_NAME',11amount: AMOUNT,12visible: true13};1415fetch(url, {16method: '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 data = {8owner_address: 'OWNER_ADDRESS',9to_address: 'RECIEVER_ADDRESS',10asset_name: 'ASSET_NAME',11amount: AMOUNT,12visible: true13};1415fetch(url, {16method: '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
1import requests23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset'45headers = {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
1import requests23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset'45headers = {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.host, url.port)8http.use_ssl = true910headers = {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}2223request = Net::HTTP::Post.new(url)24request.body = data.to_json25headers.each { |key, value| request[key] = value }2627response = http.request(request)2829if response.code.to_i == 20030result = JSON.parse(response.body)31puts result32else33puts "Request failed with status code: #{response.code}"34end35
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910headers = {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}2223request = Net::HTTP::Post.new(url)24request.body = data.to_json25headers.each { |key, value| request[key] = value }2627response = http.request(request)2829if response.code.to_i == 20030result = JSON.parse(response.body)31puts result32else33puts "Request failed with status code: #{response.code}"34end35
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free