klay_encodeAccountKey RPC Method
參數
keyType
整數
必填
載入中...
關鍵字
物件
必填
載入中...
退貨
關鍵字
字串
載入中...
請求
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{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--data '{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.追加("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 = {17方法: 'POST',18標題: myHeaders,19正文: 原始,20redirect: 'follow'21};2223fetch("https://docs-demo.kaia-kairos.quiknode.pro/", requestOptions)24.then(response => response.text())25.then(result => console.log(result))26.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.追加("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 = {17方法: 'POST',18標題: myHeaders,19正文: 原始,20redirect: 'follow'21};2223fetch("https://docs-demo.kaia-kairos.quiknode.pro/", requestOptions)24.then(response => response.text())25.then(result => console.log(result))26.catch(error => console.log('error', error));
1匯入 請求2import json34url = "https://docs-demo.kaia-kairos.quiknode.pro/"56有效載荷 = 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標題 = {18「Content-Type」: 'application/json'19}2021回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2223列印(回應.text)24
1匯入 請求2import json34url = "https://docs-demo.kaia-kairos.quiknode.pro/"56有效載荷 = 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標題 = {18「Content-Type」: 'application/json'19}2021回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2223列印(回應.text)24
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.kaia-kairos.quiknode.pro/")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"method": "klay_encodeAccountKey",14"id": 1,15"jsonrpc": "2.0",16"params": [17{18"keyType": 0,19"key": {}20}21]22})2324回應 = https.請求(請求)25將回應。read_body26
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.kaia-kairos.quiknode.pro/")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"method": "klay_encodeAccountKey",14"id": 1,15"jsonrpc": "2.0",16"params": [17{18"keyType": 0,19"key": {}20}21]22})2324回應 = https.請求(請求)25將回應。read_body26