/wallet/transferasset REST API Endpoint
身体パラメータ
owner_address
文字列
必須
読み込み中...
to_address
文字列
必須
読み込み中...
asset_name
文字列
必須
読み込み中...
金額
整数
必須
読み込み中...
permission_id
整数
読み込み中...
表示されている
ブール値
読み込み中...
extra_data
文字列
読み込み中...
返品
表示されている
読み込み中...
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};1415fetch(url, {16メソッド: 'POST',17ヘッダー: ヘッダー:,18body: JSON.stringify(data)19})20.その後(レスポンス => レスポンス.json())21.その後(結果 => {22コンソール.log(結果);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};1415fetch(url, {16メソッド: 'POST',17ヘッダー: ヘッダー:,18body: JSON.stringify(data)19})20.その後(レスポンス => レスポンス.json())21.その後(結果 => {22コンソール.log(結果);23})24.catchcatch(エラー => {25コンソール.エラー(エラー);26});27
1import リクエスト23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset'45ヘッダー = {6「accept」: '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
1import リクエスト23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset'45ヘッダー = {6「accept」: '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
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset')67http = ネット::HTTP.new(url.ホスト, url.ポート)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(URL)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
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/transferasset')67http = ネット::HTTP.new(url.ホスト, url.ポート)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(URL)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