/wallet/updateaccount REST API Endpoint
Body Parameters
owner_address
string
REQUIRED
Loading...
account_name
string
REQUIRED
Loading...
permission_id
integer
Loading...
visible
boolean
Loading...
Returns
visible
Loading...
txid
Loading...
raw_data
Loading...
contract
Loading...
parameter
Loading...
value
Loading...
amount
Loading...
owner_address
Loading...
to_address
Loading...
type_url
Loading...
type
Loading...
ref_block_bytes
Loading...
ref_block_hash
Loading...
expiration
Loading...
timestamp
Loading...
raw_data_hex
Loading...
Request
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 data = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10account_name: '0x7570646174654e616d6531353330383933343635353139',11visible: true12};1314fetch(url, {15method: '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 data = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10account_name: '0x7570646174654e616d6531353330383933343635353139',11visible: true12};1314fetch(url, {15method: '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});
1import requests2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount'56headers = {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
1import requests2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount'56headers = {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 = true89headers = {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_json2223response = http.request(request)2425if response.code.to_i == 20026result = JSON.parse(response.body)27puts result28else29puts "Request failed with status code: #{response.code}"30end31
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 = true89headers = {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_json2223response = http.request(request)2425if response.code.to_i == 20026result = JSON.parse(response.body)27puts result28else29puts "Request failed with status code: #{response.code}"30end31
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free