/wallet/updateaccount REST API Endpoint
Körperparameter
owner_address
Zeichenkette
ERFORDERLICH
Wird geladen...
account_name
Zeichenkette
ERFORDERLICH
Wird geladen...
permission_id
Ganzzahl
Wird geladen...
sichtbar
boolesch
Wird geladen...
Rücksendungen
sichtbar
Wird geladen...
txid
Wird geladen...
Rohdaten
Wird geladen...
Vertrag
Wird geladen...
Parameter
Wird geladen...
Wert
Wird geladen...
Betrag
Wird geladen...
owner_address
Wird geladen...
to_address
Wird geladen...
type_url
Wird geladen...
Typ
Wird geladen...
ref_block_bytes
Wird geladen...
ref_block_hash
Wird geladen...
Ablauf
Wird geladen...
Zeitstempel
Wird geladen...
raw_data_hex
Wird geladen...
Anfrage
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '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--Daten '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 Kopfzeilen = {4„Akzeptieren“: 'application/json',5„Content-Type“: 'application/json'6};78const Daten = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10account_name: '0x7570646174654e616d6531353330383933343635353139',11sichtbar: true12};1314abrufen(url, {15Methode: 'POST',16Überschriften: Kopfzeilen,17Körper: JSON.stringify(data)18})19.dann(Antwort => Antwort.json())20.dann(Ergebnis => {21Konsole.Protokoll(Ergebnis);22})23.catch(Fehler => {24Konsole.Fehler(Fehler);25});
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount';23const Kopfzeilen = {4„Akzeptieren“: 'application/json',5„Content-Type“: 'application/json'6};78const Daten = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10account_name: '0x7570646174654e616d6531353330383933343635353139',11sichtbar: true12};1314abrufen(url, {15Methode: 'POST',16Überschriften: Kopfzeilen,17Körper: JSON.stringify(data)18})19.dann(Antwort => Antwort.json())20.dann(Ergebnis => {21Konsole.Protokoll(Ergebnis);22})23.catch(Fehler => {24Konsole.Fehler(Fehler);25});
1import Anfragen2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount'56Überschriften = {7„akzeptieren“: 'application/json',8'content-type': 'application/json'9}1011Daten = {12"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",13"account_name": "0x7570646174654e616d6531353330383933343635353139",14„sichtbar“: Wahr15}1617Antwort = Anfragen.POST(URL, json=data, headers=Kopfzeilen)1819wenn Antwort.status_code == 200:20Drucken(Antwort.json())21sonst:22Drucken("Anfrage fehlgeschlagen mit Statuscode:", Antwort.status_code)23
1import Anfragen2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount'56Überschriften = {7„akzeptieren“: 'application/json',8'content-type': 'application/json'9}1011Daten = {12"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",13"account_name": "0x7570646174654e616d6531353330383933343635353139",14„sichtbar“: Wahr15}1617Antwort = Anfragen.POST(URL, json=data, headers=Kopfzeilen)1819wenn Antwort.status_code == 200:20Drucken(Antwort.json())21sonst:22Drucken("Anfrage fehlgeschlagen mit Statuscode:", Antwort.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Überschriften = {10„akzeptieren“ => 'application/json',11'content-type' => 'application/json'12}1314Daten = {15"owner_address" => "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"account_name" => "0x7570646174654e616d6531353330383933343635353139",17"visible" => true18}1920Anfrage = Netto::HTTP::POST.new(URL.Pfad, Header)21Anfrage.Inhalt = Daten.to_json2223Antwort = http.Anfrage(Anfrage)2425wenn Antwort.Code.to_i == 20026Ergebnis = JSON.parse(response.body)27gibt das Ergebnis aus28sonst29puts "Request failed with status code: #{response.code}"30Ende31
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Überschriften = {10„akzeptieren“ => 'application/json',11'content-type' => 'application/json'12}1314Daten = {15"owner_address" => "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"account_name" => "0x7570646174654e616d6531353330383933343635353139",17"visible" => true18}1920Anfrage = Netto::HTTP::POST.new(URL.Pfad, Header)21Anfrage.Inhalt = Daten.to_json2223Antwort = http.Anfrage(Anfrage)2425wenn Antwort.Code.to_i == 20026Ergebnis = JSON.parse(response.body)27gibt das Ergebnis aus28sonst29puts "Request failed with status code: #{response.code}"30Ende31
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen