system_health RPC Method
Parameter
Diese Methode akzeptiert keine Parameter.
Rücksendungen
Ergebnis
Zeichenkette
Wird geladen...
peers
Ganzzahl
Wird geladen...
isSyncing
boolesch
Wird geladen...
shouldHavePeers
boolesch
Wird geladen...
Anfrage
1curl https://docs-demo.dot-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"system_health","params":[],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.dot-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"system_health","params":[],"id":1,"jsonrpc":"2.0"}'
1const myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34const raw = JSON.stringify({5"method": "system_health",6„params“: [],7„id“: 1,8„jsonrpc“: "2.0"9});1011const requestOptions = {12Methode: „POST“,13Überschriften: myHeaders,14Körper: raw,15Weiterleitung: „follow“16};1718fetch("https://docs-demo.dot-mainnet.quiknode.pro/", requestOptions)19.dann((Antwort) => Antwort.text())20.dann((Ergebnis) => Konsole.log(Ergebnis))21.catch((Fehler) => Konsole.Fehler(Fehler));
1const myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34const raw = JSON.stringify({5"method": "system_health",6„params“: [],7„id“: 1,8„jsonrpc“: "2.0"9});1011const requestOptions = {12Methode: „POST“,13Überschriften: myHeaders,14Körper: raw,15Weiterleitung: „follow“16};1718fetch("https://docs-demo.dot-mainnet.quiknode.pro/", requestOptions)19.dann((Antwort) => Antwort.text())20.dann((Ergebnis) => Konsole.log(Ergebnis))21.catch((Fehler) => Konsole.Fehler(Fehler));
1import Anfragen2import json34url = "https://docs-demo.dot-mainnet.quiknode.pro/"56Nutzlast = json.dumps({7"method": "system_health",8„params“: [],9„id“: 1,10„jsonrpc“: "2.0"11})12Überschriften = {13„Content-Type“: 'application/json'14}1516Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1718Drucken(Antwort.text)19
1import Anfragen2import json34url = "https://docs-demo.dot-mainnet.quiknode.pro/"56Nutzlast = json.dumps({7"method": "system_health",8„params“: [],9„id“: 1,10„jsonrpc“: "2.0"11})12Überschriften = {13„Content-Type“: 'application/json'14}1516Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1718Drucken(Antwort.text)19
1require "uri"2require "json"3require „net/http“45url = URI("https://docs-demo.dot-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, URL.Port)8https.use_ssl = true910Anfrage = Netto::HTTP::POST.new(URL)11Anfrage[„Content-Type“] = „application/json“12Anfrage.Inhalt = JSON.dump({13"method": "system_health",14„params“: [],15„id“: 1,16„jsonrpc“: "2.0"17})1819Antwort = https.Anfrage(Anfrage)20gibt die Antwort aus.read_body21
1require "uri"2require "json"3require „net/http“45url = URI("https://docs-demo.dot-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, URL.Port)8https.use_ssl = true910Anfrage = Netto::HTTP::POST.new(URL)11Anfrage[„Content-Type“] = „application/json“12Anfrage.Inhalt = JSON.dump({13"method": "system_health",14„params“: [],15„id“: 1,16„jsonrpc“: "2.0"17})1819Antwort = https.Anfrage(Anfrage)20gibt die Antwort aus.read_body21
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen