kaia_encodeAccountKey RPC Method
參數
keyType
整數
必填
載入中...
關鍵字
物件
必填
載入中...
退貨
關鍵字
字串
載入中...
請求
1curlkaia\2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "kaia_encodeAccountKey",6"id": 1,7"jsonrpc": "2.0",8"params": [9{10"keyType": 0,11"key": {}12}13]14}'
1curlkaia\2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "kaia_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 原始 = JSON.stringify({5"method": "kaia_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正文: 原始,20重定向: '追蹤'21};2223fetch(「kaia」, requestOptions)24.接著(回應 => response.text())25.接著(結果 => 控制台.log(結果))26.catchcatch(錯誤 => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var 原始 = JSON.stringify({5"method": "kaia_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正文: 原始,20重定向: '追蹤'21};2223fetch(「kaia」, requestOptions)24.接著(回應 => response.text())25.接著(結果 => 控制台.log(結果))26.catchcatch(錯誤 => console.log('error', error));
1匯入 請求2匯入 json34網址 = "kaia"56有效載荷 = json.dumps({7"method": "kaia_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匯入 請求2匯入 json34網址 = "kaia"56有效載荷 = json.dumps({7"method": "kaia_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"45網址 = URI("kaia")67https = 網::HTTP.new(url.主機, 網址.port)8https.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11請求["Content-Type"] = "application/json"12請求。主體 = JSON.dump({13"method": "kaia_encodeAccountKey",14"id": 1,15"jsonrpc": "2.0",16"params": [17{18"keyType": 0,19"key": {}20}21]22})2324回應 = https.請求(請求)25puts 回應。read_body26
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("kaia")67https = 網::HTTP.new(url.主機, 網址.port)8https.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11請求["Content-Type"] = "application/json"12請求。主體 = JSON.dump({13"method": "kaia_encodeAccountKey",14"id": 1,15"jsonrpc": "2.0",16"params": [17{18"keyType": 0,19"key": {}20}21]22})2324回應 = https.請求(請求)25puts 回應。read_body26