/api/v2/jsonRPC RPC Method
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...
@extra
Zeichenkette
Wird geladen...
Anfrage
1curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/api/v2/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/api/v2/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/api/v2/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/api/v2/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/api/v2/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/api/v2/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/api/v2/jsonRPC")67http = Net::HTTP.new(url.host, URL.Port)8http.use_ssl = true9Anfrage = Netto::HTTP::POST.new(URL)10Anfrage[„akzeptieren“] = „application/json“11Anfrage[„Content-Type“] = „application/json“12Anfrage.Inhalt = JSON.dump({13"method": "getMasterchainInfo",14"params": {},15"id": "1",16„jsonrpc“: "2.0"17})1819Antwort = http.Anfrage(Anfrage)20gibt die Antwort aus.read_body21
1require "uri"2require "json"3require „net/http“45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/api/v2/jsonRPC")67http = Net::HTTP.new(url.host, URL.Port)8http.use_ssl = true9Anfrage = Netto::HTTP::POST.new(URL)10Anfrage[„akzeptieren“] = „application/json“11Anfrage[„Content-Type“] = „application/json“12Anfrage.Inhalt = JSON.dump({13"method": "getMasterchainInfo",14"params": {},15"id": "1",16„jsonrpc“: "2.0"17})1819Antwort = http.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