/walletsolidity/getdelegatedresourceaccountindexv2 REST API Endpoint
Körperparameter
Wert
Zeichenkette
ERFORDERLICH
Wird geladen...
sichtbar
boolesch
Wird geladen...
Rücksendungen
Konto
Wird geladen...
fromAccounts
Wird geladen...
toAccounts
Wird geladen...
Anfrage
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2 \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"value": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",7"visible": true8}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2 \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"value": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",7"visible": true8}9'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2';2const Kopfzeilen = {3„Akzeptieren“: 'application/json',4„Content-Type“: 'application/json'5};67const Daten = {8value: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',9sichtbar: true10};1112abrufen(url, {13Methode: 'POST',14Überschriften: Kopfzeilen,15Körper: JSON.stringify(data)16})17.dann(Antwort => Antwort.json())18.dann(Ergebnis => {19Konsole.Protokoll(Ergebnis);20})21.catch(Fehler => {22Konsole.Fehler(Fehler);23});24
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2';2const Kopfzeilen = {3„Akzeptieren“: 'application/json',4„Content-Type“: 'application/json'5};67const Daten = {8value: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',9sichtbar: true10};1112abrufen(url, {13Methode: 'POST',14Überschriften: Kopfzeilen,15Körper: JSON.stringify(data)16})17.dann(Antwort => Antwort.json())18.dann(Ergebnis => {19Konsole.Protokoll(Ergebnis);20})21.catch(Fehler => {22Konsole.Fehler(Fehler);23});24
1import Anfragen23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2'45Überschriften = {6„akzeptieren“: 'application/json',7'content-type': 'application/json'8}910Daten = {11"value": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",12„sichtbar“: Wahr13}1415Antwort = Anfragen.POST(URL, json=data, headers=Kopfzeilen)1617wenn Antwort.status_code == 200:18Drucken(Antwort.json())19sonst:20Drucken("Anfrage fehlgeschlagen mit Statuscode:", Antwort.status_code)21
1import Anfragen23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2'45Überschriften = {6„akzeptieren“: 'application/json',7'content-type': 'application/json'8}910Daten = {11"value": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",12„sichtbar“: Wahr13}1415Antwort = Anfragen.POST(URL, json=data, headers=Kopfzeilen)1617wenn Antwort.status_code == 200:18Drucken(Antwort.json())19sonst:20Drucken("Anfrage fehlgeschlagen mit Statuscode:", Antwort.status_code)21
1require 'net/http'2require 'json'3benötigen 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2')67http = Net::HTTP.new(url.host, URL.Port)8http.use_ssl = true910Überschriften = {11„Akzeptieren“ => 'application/json',12'Content-Type' => 'application/json'13}1415Daten = {16value: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',17sichtbar: true18}1920Anfrage = Netto::HTTP::POST.new(URL)21Anfrage.Inhalt = Daten.to_json22Überschriften.jeder { |Schlüssel, Wert| Anfrage[Schlüssel] = Wert }2324Antwort = http.Anfrage(Anfrage)2526wenn Antwort.Code.to_i == 20027Ergebnis = JSON.parse(response.body)28gibt das Ergebnis aus29sonst30puts "Request failed with status code: #{response.code}"31Ende32
1require 'net/http'2require 'json'3benötigen 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2')67http = Net::HTTP.new(url.host, URL.Port)8http.use_ssl = true910Überschriften = {11„Akzeptieren“ => 'application/json',12'Content-Type' => 'application/json'13}1415Daten = {16value: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',17sichtbar: true18}1920Anfrage = Netto::HTTP::POST.new(URL)21Anfrage.Inhalt = Daten.to_json22Überschriften.jeder { |Schlüssel, Wert| Anfrage[Schlüssel] = Wert }2324Antwort = http.Anfrage(Anfrage)2526wenn Antwort.Code.to_i == 20027Ergebnis = JSON.parse(response.body)28gibt das Ergebnis aus29sonst30puts "Request failed with status code: #{response.code}"31Ende32
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen