/wallet/transferasset REST API Endpoint
身體參數
owner_address
字串
必填
載入中...
to_address
字串
必填
載入中...
asset_name
字串
必填
載入中...
金額
整數
必填
載入中...
permission_id
整數
載入中...
visible
布林值
載入中...
extra_data
字串
載入中...
退貨
visible
載入中...
txid
載入中...
raw_data
載入中...
合約
載入中...
parameter
載入中...
值
載入中...
金額
載入中...
asset_name
載入中...
owner_address
載入中...
to_address
載入中...
type_url
載入中...
類型
載入中...
ref_block_bytes
載入中...
ref_block_hash
載入中...
expiration
載入中...
時間戳記
載入中...
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 標頭 = {3「接受」: '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};1415取得(url, {16方法: 'POST',17標題: 標頭:,18body: JSON.stringify(data)19})20.接著(回應 => response.json())21.接著(結果 => {22控制台.日誌(結果);23})24.catchcatch(錯誤 => {25控制台.錯誤(錯誤);26});27
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset';2const 標頭 = {3「接受」: '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};1415取得(url, {16方法: 'POST',17標題: 標頭:,18body: JSON.stringify(data)19})20.接著(回應 => response.json())21.接著(結果 => {22控制台.日誌(結果);23})24.catchcatch(錯誤 => {25控制台.錯誤(錯誤);26});27
1匯入 請求23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset'45標題 = {6「接受」: 'application/json',7'content-type': 'application/json'8}910資料 = {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「接受」: 'application/json',7'content-type': 'application/json'8}910資料 = {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需要 'net/http'2require 'json'3需要 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910標題 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415資料 = {16'owner_address' => 'OWNER_ADDRESS',17'to_address' => 'RECIEVER_ADDRESS',18'asset_name' => 'ASSET_NAME',19'amount' => AMOUNT,20'visible' => true21}2223請求 = 淨::HTTP::POST.new(網址)24請求。正文 = data.to_json25headers.each { |key, value| request[key] = value }2627回應 = http.請求(請求)2829if response.code.to_i == 20030result = JSON.parse(response.body)31puts result32else33puts "Request failed with status code: #{response.code}"34結束35
1需要 'net/http'2require 'json'3需要 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910標題 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415資料 = {16'owner_address' => 'OWNER_ADDRESS',17'to_address' => 'RECIEVER_ADDRESS',18'asset_name' => 'ASSET_NAME',19'amount' => AMOUNT,20'visible' => true21}2223請求 = 淨::HTTP::POST.new(網址)24請求。正文 = data.to_json25headers.each { |key, value| request[key] = value }2627回應 = http.請求(請求)2829if response.code.to_i == 20030result = JSON.parse(response.body)31puts result32else33puts "Request failed with status code: #{response.code}"34結束35