/wallet/updateasset REST API Endpoint
身體參數
owner_address
字串
必填
載入中...
說明
字串
必填
載入中...
url
字串
必填
載入中...
new_limit
整數
必填
載入中...
new_public_limit
整數
必填
載入中...
permission_id
整數
載入中...
visible
布林值
載入中...
退貨
visible
載入中...
txid
載入中...
raw_data
載入中...
合約
載入中...
parameter
載入中...
值
載入中...
說明
載入中...
owner_address
載入中...
url
載入中...
new_limit
載入中...
new_public_limit
載入中...
type_url
載入中...
類型
載入中...
ref_block_bytes
載入中...
ref_block_hash
載入中...
expiration
載入中...
時間戳記
載入中...
raw_data_hex
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateasset \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"visible": true8}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateasset \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"visible": true8}9'
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateasset', {2方法: 'POST',3headers: {4「接受」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8owner_address: 'OWNER_ADDRESS',9visible: true10})11})12.接著(回應 => response.json())13.then(data => {14// Handle the response data here15console.log(data);16})17.catchcatch(錯誤 => {18// Handle any errors here19控制台.錯誤(錯誤);20});21
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateasset', {2方法: 'POST',3headers: {4「接受」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8owner_address: 'OWNER_ADDRESS',9visible: true10})11})12.接著(回應 => response.json())13.then(data => {14// Handle the response data here15console.log(data);16})17.catchcatch(錯誤 => {18// Handle any errors here19控制台.錯誤(錯誤);20});21
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateasset'5標題 = {6「接受」: 'application/json',7「Content-Type」: 'application/json'8}9資料 = {10'owner_address': 'OWNER_ADDRESS',11'visible': True12}1314response = requests.post(url, headers=headers, json=data)1516if response.status_code == 200:17data = response.json()18# Handle the response data here19print(data)20else:21# Handle the error here22print(f'Error: {response.status_code} {response.reason}')23
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateasset'5標題 = {6「接受」: 'application/json',7「Content-Type」: 'application/json'8}9資料 = {10'owner_address': 'OWNER_ADDRESS',11'visible': True12}1314response = requests.post(url, headers=headers, json=data)1516if response.status_code == 200:17data = response.json()18# Handle the response data here19print(data)20else:21# Handle the error here22print(f'Error: {response.status_code} {response.reason}')23
1需要 'net/http'2require 'json'34url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateasset')5http = Net::HTTP.new(url.host, url.port)6http.use_ssl = true78請求 = 淨::HTTP::POST.new(網址)9request['Accept'] = 'application/json'10request['Content-Type'] = 'application/json'11request.body = {12owner_address: 'OWNER_ADDRESS',13visible: true14}.to_json1516回應 = http.請求(請求)1718if response.code.to_i == 20019data = JSON.parse(response.body)20# Handle the response data here21puts data22else23# Handle the error here24puts "Error: #{response.code} #{response.message}"25結束26
1需要 'net/http'2require 'json'34url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateasset')5http = Net::HTTP.new(url.host, url.port)6http.use_ssl = true78請求 = 淨::HTTP::POST.new(網址)9request['Accept'] = 'application/json'10request['Content-Type'] = 'application/json'11request.body = {12owner_address: 'OWNER_ADDRESS',13visible: true14}.to_json1516回應 = http.請求(請求)1718if response.code.to_i == 20019data = JSON.parse(response.body)20# Handle the response data here21puts data22else23# Handle the error here24puts "Error: #{response.code} #{response.message}"25結束26