/jsonRPC REST API Endpoint
Körperparameter
Methode
Zeichenkette
ERFORDERLICH
Wird geladen...
params
Zeichenkette
ERFORDERLICH
Wird geladen...
jsonrpc
Zeichenkette
Wird geladen...
id
Zeichenkette
Wird geladen...
Rücksendungen
ok
boolesch
Wird geladen...
Ergebnis
Objekt
Wird geladen...
jsonrpc
Zeichenkette
Wird geladen...
id
Zeichenkette
Wird geladen...
Anfrage
1curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/jsonRPC' \2--header 'accept: application/json' \3--header 'Content-Type: application/json' \4--Daten '{5"method": "getMasterchainInfo",6"params": {},7"id": "1",8"jsonrpc": "2.0"9}'
1curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/jsonRPC' \2--header 'accept: application/json' \3--header 'Content-Type: application/json' \4--Daten '{5"method": "getMasterchainInfo",6"params": {},7"id": "1",8"jsonrpc": "2.0"9}'
1const myHeaders = new Headers();2myHeaders.anhängen("accept", "application/json");3myHeaders.anhängen("Content-Type", "application/json");45const raw = JSON.stringify({6"method": "getMasterchainInfo",7"params": {},8"id": "1",9„jsonrpc“: "2.0"10});1112const requestOptions = {13Methode: „POST“,14Überschriften: myHeaders,15Körper: raw,16Weiterleitung: „follow“17};1819fetch("https://docs-demo.ton-mainnet.quiknode.pro/jsonRPC", requestOptions)20.dann((Antwort) => Antwort.text())21.dann((Ergebnis) => Konsole.log(Ergebnis))22.catch((Fehler) => Konsole.Fehler(Fehler));
1const myHeaders = new Headers();2myHeaders.anhängen("accept", "application/json");3myHeaders.anhängen("Content-Type", "application/json");45const raw = JSON.stringify({6"method": "getMasterchainInfo",7"params": {},8"id": "1",9„jsonrpc“: "2.0"10});1112const requestOptions = {13Methode: „POST“,14Überschriften: myHeaders,15Körper: raw,16Weiterleitung: „follow“17};1819fetch("https://docs-demo.ton-mainnet.quiknode.pro/jsonRPC", requestOptions)20.dann((Antwort) => Antwort.text())21.dann((Ergebnis) => Konsole.log(Ergebnis))22.catch((Fehler) => Konsole.Fehler(Fehler));
1import Anfragen2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/jsonRPC"56Nutzlast = json.dumps({7"method": "getMasterchainInfo",8"params": {},9"id": "1",10„jsonrpc“: "2.0"11})12Überschriften = {13„akzeptieren“: 'application/json',14„Content-Type“: 'application/json'15}1617Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1819Drucken(Antwort.text)20
1import Anfragen2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/jsonRPC"56Nutzlast = json.dumps({7"method": "getMasterchainInfo",8"params": {},9"id": "1",10„jsonrpc“: "2.0"11})12Überschriften = {13„akzeptieren“: 'application/json',14„Content-Type“: 'application/json'15}1617Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1819Drucken(Antwort.text)20
1require "uri"2require "json"3require „net/http“45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/jsonRPC")67http = Net::HTTP.new(url.host, url.port);8Anfrage = Netto::HTTP::POST.new(URL)9Anfrage[„akzeptieren“] = „application/json“10Anfrage[„Content-Type“] = „application/json“11Anfrage.Inhalt = JSON.dump({12"method": "getMasterchainInfo",13"params": {},14"id": "1",15„jsonrpc“: "2.0"16})1718Antwort = http.Anfrage(Anfrage)19gibt die Antwort aus.read_body20
1require "uri"2require "json"3require „net/http“45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/jsonRPC")67http = Net::HTTP.new(url.host, url.port);8Anfrage = Netto::HTTP::POST.new(URL)9Anfrage[„akzeptieren“] = „application/json“10Anfrage[„Content-Type“] = „application/json“11Anfrage.Inhalt = JSON.dump({12"method": "getMasterchainInfo",13"params": {},14"id": "1",15„jsonrpc“: "2.0"16})1718Antwort = http.Anfrage(Anfrage)19gibt die Antwort aus.read_body20
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen