/wallet/accountpermissionupdate REST API Endpoint
Körperparameter
owner_address
Zeichenkette
ERFORDERLICH
Wird geladen...
actives
Zeichenkette
ERFORDERLICH
Wird geladen...
Eigentümer
Ganzzahl
ERFORDERLICH
Wird geladen...
witness
Ganzzahl
ERFORDERLICH
Wird geladen...
sichtbar
boolesch
Wird geladen...
Rücksendungen
sichtbar
Wird geladen...
txid
Wird geladen...
Rohdaten
Wird geladen...
Vertrag
Wird geladen...
contract_index
Wird geladen...
Parameter
Wird geladen...
Wert
Wird geladen...
Eigentümer
Wird geladen...
keys
Wird geladen...
Adresse
Wird geladen...
Gewicht
Wird geladen...
permission_name
Wird geladen...
threshold
Wird geladen...
owner_address
Wird geladen...
active
Wird geladen...
operations
Wird geladen...
Typ
Wird geladen...
permission_name
Wird geladen...
threshold
Wird geladen...
keys
Wird geladen...
Adresse
Wird geladen...
Gewicht
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/accountpermissionupdate \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"actives": [8{9"type": 2,10"permission_name": "active0",11"threshold": 2,12"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",13"keys": [14{15"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"weight": 117},18{19"address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",20"weight": 121}22]23}24],25"owner": {26"type": 0,27"permission_name": "owner",28"threshold": 1,29"keys": [30{31"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",32"weight": 133}34]35},36"visible": true37}38'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"actives": [8{9"type": 2,10"permission_name": "active0",11"threshold": 2,12"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",13"keys": [14{15"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"weight": 117},18{19"address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",20"weight": 121}22]23}24],25"owner": {26"type": 0,27"permission_name": "owner",28"threshold": 1,29"keys": [30{31"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",32"weight": 133}34]35},36"visible": true37}38'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate';23const Kopfzeilen = {4„Akzeptieren“: 'application/json',5„Content-Type“: 'application/json'6};78const Daten = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10actives: [11{12type: 2,13permission_name: 'active0',14threshold: 2,15operations: '7fff1fc0037e0000000000000000000000000000000000000000000000000000',16keys: [17{18address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',19weight: 120},21{22address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',23weight: 124}25]26}27],28owner: {29type: 0,30permission_name: 'owner',31threshold: 1,32keys: [33{34address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',35weight: 136}37]38},39sichtbar: true40};4142abrufen(url, {43Methode: 'POST',44Überschriften: Kopfzeilen,45Körper: JSON.stringify(data)46})47.dann(Antwort => Antwort.json())48.dann(Ergebnis => {49Konsole.Protokoll(Ergebnis);50})51.catch(Fehler => {52Konsole.Fehler(Fehler);53});54
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate';23const Kopfzeilen = {4„Akzeptieren“: 'application/json',5„Content-Type“: 'application/json'6};78const Daten = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10actives: [11{12type: 2,13permission_name: 'active0',14threshold: 2,15operations: '7fff1fc0037e0000000000000000000000000000000000000000000000000000',16keys: [17{18address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',19weight: 120},21{22address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',23weight: 124}25]26}27],28owner: {29type: 0,30permission_name: 'owner',31threshold: 1,32keys: [33{34address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',35weight: 136}37]38},39sichtbar: true40};4142abrufen(url, {43Methode: 'POST',44Überschriften: Kopfzeilen,45Körper: JSON.stringify(data)46})47.dann(Antwort => Antwort.json())48.dann(Ergebnis => {49Konsole.Protokoll(Ergebnis);50})51.catch(Fehler => {52Konsole.Fehler(Fehler);53});54
1import Anfragen2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate'56Überschriften = {7„akzeptieren“: 'application/json',8'content-type': 'application/json'9}1011Daten = {12"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",13"actives": [14{15"type": 2,16"permission_name": "active0",17"threshold": 2,18"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",19"keys": [20{21"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",22"weight": 123},24{25"address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",26"weight": 127}28]29}30],31"owner": {32"type": 0,33"permission_name": "owner",34"threshold": 1,35"keys": [36{37"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",38"weight": 139}40]41},42„sichtbar“: Wahr43}4445Antwort = Anfragen.POST(URL, json=data, headers=Kopfzeilen)4647wenn Antwort.status_code == 200:48Drucken(Antwort.json())49sonst:50Drucken("Anfrage fehlgeschlagen mit Statuscode:", Antwort.status_code)51
1import Anfragen2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate'56Überschriften = {7„akzeptieren“: 'application/json',8'content-type': 'application/json'9}1011Daten = {12"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",13"actives": [14{15"type": 2,16"permission_name": "active0",17"threshold": 2,18"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",19"keys": [20{21"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",22"weight": 123},24{25"address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",26"weight": 127}28]29}30],31"owner": {32"type": 0,33"permission_name": "owner",34"threshold": 1,35"keys": [36{37"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",38"weight": 139}40]41},42„sichtbar“: Wahr43}4445Antwort = Anfragen.POST(URL, json=data, headers=Kopfzeilen)4647wenn Antwort.status_code == 200:48Drucken(Antwort.json())49sonst:50Drucken("Anfrage fehlgeschlagen mit Statuscode:", Antwort.status_code)51
1require 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate')56http = Net::HTTP.new(url.host, URL.Port)7http.use_ssl = true89Überschriften = {10„Akzeptieren“ => 'application/json',11'Content-Type' => 'application/json'12}1314Daten = {15owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',16actives: [17{18type: 2,19permission_name: 'active0',20threshold: 2,21operations: '7fff1fc0037e0000000000000000000000000000000000000000000000000000',22keys: [23{24address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',25weight: 126},27{28address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',29weight: 130}31]32}33],34owner: {35type: 0,36permission_name: 'owner',37threshold: 1,38keys: [39{40address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',41weight: 142}43]44},45sichtbar: true46}4748Anfrage = Netto::HTTP::POST.new(URL)49Anfrage.Inhalt = Daten.to_json50Überschriften.jeder { |Schlüssel, Wert| Anfrage[Schlüssel] = Wert }5152Antwort = http.Anfrage(Anfrage)5354wenn Antwort.Code.to_i == 20055Ergebnis = JSON.parse(response.body)56gibt das Ergebnis aus57sonst58puts "Request failed with status code: #{response.code}"59Ende60
1require 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate')56http = Net::HTTP.new(url.host, URL.Port)7http.use_ssl = true89Überschriften = {10„Akzeptieren“ => 'application/json',11'Content-Type' => 'application/json'12}1314Daten = {15owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',16actives: [17{18type: 2,19permission_name: 'active0',20threshold: 2,21operations: '7fff1fc0037e0000000000000000000000000000000000000000000000000000',22keys: [23{24address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',25weight: 126},27{28address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',29weight: 130}31]32}33],34owner: {35type: 0,36permission_name: 'owner',37threshold: 1,38keys: [39{40address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',41weight: 142}43]44},45sichtbar: true46}4748Anfrage = Netto::HTTP::POST.new(URL)49Anfrage.Inhalt = Daten.to_json50Überschriften.jeder { |Schlüssel, Wert| Anfrage[Schlüssel] = Wert }5152Antwort = http.Anfrage(Anfrage)5354wenn Antwort.Code.to_i == 20055Ergebnis = JSON.parse(response.body)56gibt das Ergebnis aus57sonst58puts "Request failed with status code: #{response.code}"59Ende60
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen