/wallet/updateaccount REST API Endpoint
身體參數
所有者地址
字串
必填
載入中...
account_name
字串
必填
載入中...
permission_id
整數
載入中...
visible
布林值
載入中...
退貨
visible
載入中...
txid
載入中...
raw_data
載入中...
contract
載入中...
parameter
載入中...
值
載入中...
金額
載入中...
所有者地址
載入中...
to_address
載入中...
type_url
載入中...
類型
載入中...
ref_block_bytes
載入中...
ref_block_hash
載入中...
到期日
載入中...
時間戳記
載入中...
raw_data_hex
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"account_name": "0x7570646174654e616d6531353330383933343635353139",8"visible": true9}10'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"account_name": "0x7570646174654e616d6531353330383933343635353139",8"visible": true9}10'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount';23const headers = {4'Accept': 'application/json',5「Content-Type」: 'application/json'6};78const 資料 = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10account_name: '0x7570646174654e616d6531353330383933343635353139',11visible: true12};1314fetch(url, {15方法: 'POST',16headers: headers,17body: JSON.stringify(data)18})19.then(response => response.json())20.then(result => {21console.log(result);22})23.catch(error => {24console.error(error);25});
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount';23const headers = {4'Accept': 'application/json',5「Content-Type」: 'application/json'6};78const 資料 = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10account_name: '0x7570646174654e616d6531353330383933343635353139',11visible: true12};1314fetch(url, {15方法: 'POST',16headers: headers,17body: JSON.stringify(data)18})19.then(response => response.json())20.then(result => {21console.log(result);22})23.catch(error => {24console.error(error);25});
1匯入 請求2匯入 json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount'56標題 = {7'accept': 'application/json',8'content-type': 'application/json'9}1011data = {12"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",13"account_name": "0x7570646174654e616d6531353330383933343635353139",14"visible": True15}1617response = requests.post(url, json=data, headers=headers)1819if response.status_code == 200:20print(response.json())21else:22print("Request failed with status code:", response.status_code)23
1匯入 請求2匯入 json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount'56標題 = {7'accept': 'application/json',8'content-type': 'application/json'9}1011data = {12"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",13"account_name": "0x7570646174654e616d6531353330383933343635353139",14"visible": True15}1617response = requests.post(url, json=data, headers=headers)1819if response.status_code == 200:20print(response.json())21else:22print("Request failed with status code:", response.status_code)23
1require 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount')56http = Net::HTTP.new(url.host, url.port)7http.use_ssl = true89標題 = {10'accept' => 'application/json',11'content-type' => 'application/json'12}1314data = {15"owner_address" => "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"account_name" => "0x7570646174654e616d6531353330383933343635353139",17"visible" => true18}1920request = Net::HTTP::Post.new(url.path, headers)21request.body = data.to_json2223回應 = http.請求(請求)2425if response.code.to_i == 20026result = JSON.parse(response.body)27puts result28else29puts "Request failed with status code: #{response.code}"30結束31
1require 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount')56http = Net::HTTP.new(url.host, url.port)7http.use_ssl = true89標題 = {10'accept' => 'application/json',11'content-type' => 'application/json'12}1314data = {15"owner_address" => "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"account_name" => "0x7570646174654e616d6531353330383933343635353139",17"visible" => true18}1920request = Net::HTTP::Post.new(url.path, headers)21request.body = data.to_json2223回應 = http.請求(請求)2425if response.code.to_i == 20026result = JSON.parse(response.body)27puts result28else29puts "Request failed with status code: #{response.code}"30結束31