/wallet/updateaccount REST API Endpoint
身體參數
owner_address
字串
必填
載入中...
account_name
字串
必填
載入中...
permission_id
整數
載入中...
visible
布林值
載入中...
退貨
visible
載入中...
txid
載入中...
raw_data
載入中...
合約
載入中...
parameter
載入中...
值
載入中...
金額
載入中...
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/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 標頭 = {4「接受」: 'application/json',5「Content-Type」: 'application/json'6};78const data = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10account_name: '0x7570646174654e616d6531353330383933343635353139',11visible: true12};1314取得(url, {15方法: 'POST',16標題: 標頭:,17body: JSON.stringify(data)18})19.接著(回應 => response.json())20.接著(結果 => {21控制台.日誌(結果);22})23.catchcatch(錯誤 => {24控制台.錯誤(錯誤);25});
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount';23const 標頭 = {4「接受」: 'application/json',5「Content-Type」: 'application/json'6};78const data = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10account_name: '0x7570646174654e616d6531353330383933343635353139',11visible: true12};1314取得(url, {15方法: 'POST',16標題: 標頭:,17body: JSON.stringify(data)18})19.接著(回應 => response.json())20.接著(結果 => {21控制台.日誌(結果);22})23.catchcatch(錯誤 => {24控制台.錯誤(錯誤);25});
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount'56標題 = {7「接受」: 'application/json',8'content-type': 'application/json'9}1011資料 = {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
1import requests2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount'56標題 = {7「接受」: 'application/json',8'content-type': 'application/json'9}1011資料 = {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需要 '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}1314資料 = {15"owner_address" => "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"account_name" => "0x7570646174654e616d6531353330383933343635353139",17"visible" => true18}1920request = Net::HTTP::Post.new(url.path, headers)21請求。正文 = 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
1需要 '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}1314資料 = {15"owner_address" => "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"account_name" => "0x7570646174654e616d6531353330383933343635353139",17"visible" => true18}1920request = Net::HTTP::Post.new(url.path, headers)21請求。正文 = 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