klay_encodeAccountKey RPC Method
Parameter
keyType
Ganzzahl
ERFORDERLICH
Wird geladen...
Schlüssel
Objekt
ERFORDERLICH
Wird geladen...
Rücksendungen
Schlüssel
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_encodeAccountKey",6"id": 1,7"jsonrpc": "2.0",8"params": [9{10"keyType": 0,11"key": {}12}13]14}'
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--Daten '{5"method": "klay_encodeAccountKey",6"id": 1,7"jsonrpc": "2.0",8"params": [9{10"keyType": 0,11"key": {}12}13]14}'
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "klay_encodeAccountKey",6"id": 1,7„jsonrpc“: "2.0",8„params“: [9{10"keyType": 0,11"key": {}12}13]14});1516var requestOptions = {17Methode: 'POST',18Überschriften: myHeaders,19Körper: raw,20Weiterleitung: 'follow'21};2223abrufen(„https://docs-demo.kaia-kairos.quiknode.pro/“, requestOptions)24.dann(Antwort => Antwort.text())25.dann(Ergebnis => Konsole.log(Ergebnis))26.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.anhängen("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "klay_encodeAccountKey",6"id": 1,7„jsonrpc“: "2.0",8„params“: [9{10"keyType": 0,11"key": {}12}13]14});1516var requestOptions = {17Methode: 'POST',18Überschriften: myHeaders,19Körper: raw,20Weiterleitung: 'follow'21};2223abrufen(„https://docs-demo.kaia-kairos.quiknode.pro/“, requestOptions)24.dann(Antwort => Antwort.text())25.dann(Ergebnis => Konsole.log(Ergebnis))26.catch(error => console.log('error', error));
1import Anfragen2import json34URL = "https://docs-demo.kaia-kairos.quiknode.pro/"56Nutzlast = json.dumps({7"method": "klay_encodeAccountKey",8"id": 1,9„jsonrpc“: "2.0",10„params“: [11{12"keyType": 0,13"key": {}14}15]16})17Überschriften = {18„Content-Type“: 'application/json'19}2021Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)2223Drucken(Antwort.text)24
1import Anfragen2import json34URL = "https://docs-demo.kaia-kairos.quiknode.pro/"56Nutzlast = json.dumps({7"method": "klay_encodeAccountKey",8"id": 1,9„jsonrpc“: "2.0",10„params“: [11{12"keyType": 0,13"key": {}14}15]16})17Überschriften = {18„Content-Type“: 'application/json'19}2021Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)2223Drucken(Antwort.text)24
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_encodeAccountKey",14„id“: 1,15„jsonrpc“: "2.0",16„params“: [17{18"keyType": 0,19"key": {}20}21]22})2324Antwort = https.Anfrage(Anfrage)25gibt die Antwort aus.read_body26
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_encodeAccountKey",14„id“: 1,15„jsonrpc“: "2.0",16„params“: [17{18"keyType": 0,19"key": {}20}21]22})2324Antwort = https.Anfrage(Anfrage)25gibt die Antwort aus.read_body26
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen