/walletsolidity/getdelegatedresource REST API Endpoint
Körperparameter
Absenderadresse
Zeichenkette
ERFORDERLICH
Wird geladen...
toAddress
Zeichenkette
ERFORDERLICH
Wird geladen...
sichtbar
boolesch
Wird geladen...
Rücksendungen
aus
Wird geladen...
zu
Wird geladen...
gesperrter_Saldo_für_Bandbreite
Wird geladen...
Eingefrorener Saldo für Energie
Wird geladen...
Ablaufzeit_für_Bandbreite
Wird geladen...
Ablaufzeit_für_Energie
Wird geladen...
Anfrage
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"fromAddress": "FROM_ADDRESS",7"toAddress": "TO_ADDRESS",8"visible": true9}10'11
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"fromAddress": "FROM_ADDRESS",7"toAddress": "TO_ADDRESS",8"visible": true9}10'11
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource';2const Kopfzeilen = {3„Akzeptieren“: 'application/json',4„Content-Type“: 'application/json'5};67const Daten = {8fromAddress: 'FROM_ADDRESS',9toAddress: 'TO_ADDRESS',10sichtbar: true11};1213abrufen(url, {14Methode: 'POST',15Überschriften: Kopfzeilen,16Körper: JSON.stringify(data)17})18.dann(Antwort => Antwort.json())19.dann(Ergebnis => {20Konsole.Protokoll(Ergebnis);21})22.catch(Fehler => {23Konsole.Fehler(Fehler);24});25
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource';2const Kopfzeilen = {3„Akzeptieren“: 'application/json',4„Content-Type“: 'application/json'5};67const Daten = {8fromAddress: 'FROM_ADDRESS',9toAddress: 'TO_ADDRESS',10sichtbar: true11};1213abrufen(url, {14Methode: 'POST',15Überschriften: Kopfzeilen,16Körper: JSON.stringify(data)17})18.dann(Antwort => Antwort.json())19.dann(Ergebnis => {20Konsole.Protokoll(Ergebnis);21})22.catch(Fehler => {23Konsole.Fehler(Fehler);24});25
1import Anfragen23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource'45Überschriften = {6„akzeptieren“: 'application/json',7'content-type': 'application/json'8}910Daten = {11"fromAddress": "FROM_ADDRESS",12"toAddress": "TO_ADDRESS",13„sichtbar“: Wahr14}1516Antwort = Anfragen.POST(URL, json=data, headers=Kopfzeilen)1718wenn Antwort.status_code == 200:19Drucken(Antwort.json())20sonst:21Drucken("Anfrage fehlgeschlagen mit Statuscode:", Antwort.status_code)22
1import Anfragen23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource'45Überschriften = {6„akzeptieren“: 'application/json',7'content-type': 'application/json'8}910Daten = {11"fromAddress": "FROM_ADDRESS",12"toAddress": "TO_ADDRESS",13„sichtbar“: Wahr14}1516Antwort = Anfragen.POST(URL, json=data, headers=Kopfzeilen)1718wenn Antwort.status_code == 200:19Drucken(Antwort.json())20sonst:21Drucken("Anfrage fehlgeschlagen mit Statuscode:", Antwort.status_code)22
1require 'net/http'2require 'json'3benötigen 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource')67http = Net::HTTP.new(url.host, URL.Port)8http.use_ssl = true910Überschriften = {11„Akzeptieren“ => 'application/json',12'Content-Type' => 'application/json'13}1415Daten = {16fromAddress: 'FROM_ADDRESS',17toAddress: 'TO_ADDRESS',18sichtbar: true19}2021Anfrage = Netto::HTTP::POST.new(URL)22Anfrage.Inhalt = Daten.to_json23Überschriften.jeder { |Schlüssel, Wert| Anfrage[Schlüssel] = Wert }2425Antwort = http.Anfrage(Anfrage)2627wenn Antwort.Code.to_i == 20028Ergebnis = JSON.parse(response.body)29gibt das Ergebnis aus30sonst31puts "Request failed with status code: #{response.code}"32Ende33
1require 'net/http'2require 'json'3benötigen 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource')67http = Net::HTTP.new(url.host, URL.Port)8http.use_ssl = true910Überschriften = {11„Akzeptieren“ => 'application/json',12'Content-Type' => 'application/json'13}1415Daten = {16fromAddress: 'FROM_ADDRESS',17toAddress: 'TO_ADDRESS',18sichtbar: true19}2021Anfrage = Netto::HTTP::POST.new(URL)22Anfrage.Inhalt = Daten.to_json23Überschriften.jeder { |Schlüssel, Wert| Anfrage[Schlüssel] = Wert }2425Antwort = http.Anfrage(Anfrage)2627wenn Antwort.Code.to_i == 20028Ergebnis = JSON.parse(response.body)29gibt das Ergebnis aus30sonst31puts "Request failed with status code: #{response.code}"32Ende33
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen