klay_syncing RPC Method
Parameter
Diese Methode akzeptiert keine Parameter.
Rücksendungen
Ergebnis
Objekt
Wird geladen...
Startblock
Zeichenkette
Wird geladen...
aktuellerBlock
Zeichenkette
Wird geladen...
highestBlock
Zeichenkette
Wird geladen...
knownStates
Zeichenkette
Wird geladen...
pulledStates
Zeichenkette
Wird geladen...
Anfrage
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--Daten '{5"method": "klay_syncing",6"id": 1,7"jsonrpc": "2.0",8"params": []9}'
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--Daten '{5"method": "klay_syncing",6"id": 1,7"jsonrpc": "2.0",8"params": []9}'
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "klay_syncing",6„params“: [],7„id“: 1,8„jsonrpc“: "2.0"9});1011var requestOptions = {12Methode: 'POST',13Überschriften: myHeaders,14Körper: raw,15Weiterleitung: 'follow'16};1718abrufen(„https://docs-demo.kaia-kairos.quiknode.pro/“, requestOptions)19.dann(Antwort => Antwort.text())20.dann(Ergebnis => Konsole.log(Ergebnis))21.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "klay_syncing",6„params“: [],7„id“: 1,8„jsonrpc“: "2.0"9});1011var requestOptions = {12Methode: 'POST',13Überschriften: myHeaders,14Körper: raw,15Weiterleitung: 'follow'16};1718abrufen(„https://docs-demo.kaia-kairos.quiknode.pro/“, requestOptions)19.dann(Antwort => Antwort.text())20.dann(Ergebnis => Konsole.log(Ergebnis))21.catch(error => console.log('error', error));
1import Anfragen2import json34URL = "https://docs-demo.kaia-kairos.quiknode.pro/"56Nutzlast = json.dumps({7"method": "klay_syncing",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.kaia-kairos.quiknode.pro/"56Nutzlast = json.dumps({7"method": "klay_syncing",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.kaia-kairos.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": "klay_syncing",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.kaia-kairos.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": "klay_syncing",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