/walletsolidity/getblockbylimitnext REST API Endpoint
Körperparameter
startNum
Ganzzahl
ERFORDERLICH
Wird geladen...
endNum
Ganzzahl
ERFORDERLICH
Wird geladen...
Rücksendungen
Blöcke
Wird geladen...
blockID
Wird geladen...
block_header
Wird geladen...
Rohdaten
Wird geladen...
Zahl
Wird geladen...
txTrieRoot
Wird geladen...
Anschrift des Zeugen
Wird geladen...
parentHash
Wird geladen...
accountStateRoot
Wird geladen...
witness_id
Wird geladen...
Version
Wird geladen...
Zeitstempel
Wird geladen...
Zeugenunterschrift
Wird geladen...
Anfrage
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbylimitnext \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"startNum": 1,7"endNum": 58}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbylimitnext \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"startNum": 1,7"endNum": 58}9'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbylimitnext';2const Kopfzeilen = {3„Akzeptieren“: 'application/json',4„Content-Type“: 'application/json'5};67const Daten = {8startNum: 1,9endNum: 510};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/getblockbylimitnext';2const Kopfzeilen = {3„Akzeptieren“: 'application/json',4„Content-Type“: 'application/json'5};67const Daten = {8startNum: 1,9endNum: 510};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/getblockbylimitnext'45Überschriften = {6„akzeptieren“: 'application/json',7'content-type': 'application/json'8}910Daten = {11"startNum": 1,12"endNum": 513}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/getblockbylimitnext'45Überschriften = {6„akzeptieren“: 'application/json',7'content-type': 'application/json'8}910Daten = {11"startNum": 1,12"endNum": 513}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/getblockbylimitnext')67http = Net::HTTP.new(url.host, URL.Port)8http.use_ssl = true910Überschriften = {11„Akzeptieren“ => 'application/json',12'Content-Type' => 'application/json'13}1415Daten = {16startNum: 1,17endNum: 518}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/getblockbylimitnext')67http = Net::HTTP.new(url.host, URL.Port)8http.use_ssl = true910Überschriften = {11„Akzeptieren“ => 'application/json',12'Content-Type' => 'application/json'13}1415Daten = {16startNum: 1,17endNum: 518}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