childstate_getKeys RPC Method - AssetHub
參數
childStorageKey
字串
必填
載入中...
prefix
字串
必填
載入中...
hash
字串
載入中...
退貨
結果
陣列
載入中...
請求
1curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/asset-hub' \2--標頭 'Content-Type: application/json' \3--data '{"method":"childstate_getKeys","params":["CHILD_STORAGE_KEY", "PREFIX"],"id":1,"jsonrpc":"2.0"}'
1curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/asset-hub' \2--標頭 'Content-Type: application/json' \3--data '{"method":"childstate_getKeys","params":["CHILD_STORAGE_KEY", "PREFIX"],"id":1,"jsonrpc":"2.0"}'
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5"method": "childstate_getKeys",6"params": [7"CHILD_STORAGE_KEY",8"PREFIX"9],10"id": 1,11"jsonrpc": "2.0"12});131415const requestOptions = {16方法: 「POST」,17標題: myHeaders,18正文: 原始,19重定向: 「追蹤」20};2122取得(「https://docs-demo.dot-mainnet.quiknode.pro/asset-hub」, requestOptions)23.接著((回應) => 回應.文字())24.接著((結果) => 控制台.log(結果))25.catch((錯誤) => 控制台.錯誤(錯誤));26
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5"method": "childstate_getKeys",6"params": [7"CHILD_STORAGE_KEY",8"PREFIX"9],10"id": 1,11"jsonrpc": "2.0"12});131415const requestOptions = {16方法: 「POST」,17標題: myHeaders,18正文: 原始,19重定向: 「追蹤」20};2122取得(「https://docs-demo.dot-mainnet.quiknode.pro/asset-hub」, requestOptions)23.接著((回應) => 回應.文字())24.接著((結果) => 控制台.log(結果))25.catch((錯誤) => 控制台.錯誤(錯誤));26
1匯入 請求2import json34網址 = "https://docs-demo.dot-mainnet.quiknode.pro/asset-hub"56有效載荷 = json.dumps({7"method": "childstate_getKeys",8"params": [9"CHILD_STORAGE_KEY",10"PREFIX"11],12"id": 1,13"jsonrpc": "2.0"14})1516標題 = {17「Content-Type」: 'application/json'18}1920回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)21列印(回應.text)22
1匯入 請求2import json34網址 = "https://docs-demo.dot-mainnet.quiknode.pro/asset-hub"56有效載荷 = json.dumps({7"method": "childstate_getKeys",8"params": [9"CHILD_STORAGE_KEY",10"PREFIX"11],12"id": 1,13"jsonrpc": "2.0"14})1516標題 = {17「Content-Type」: 'application/json'18}1920回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)21列印(回應.text)22
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("https://docs-demo.dot-mainnet.quiknode.pro/asset-hub")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"method": "childstate_getKeys",14"params": [15"CHILD_STORAGE_KEY",16"PREFIX"17],18"id": 1,19"jsonrpc": "2.0"20})2122回應 = https.請求(請求)23將回應。read_body24
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("https://docs-demo.dot-mainnet.quiknode.pro/asset-hub")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"method": "childstate_getKeys",14"params": [15"CHILD_STORAGE_KEY",16"PREFIX"17],18"id": 1,19"jsonrpc": "2.0"20})2122回應 = https.請求(請求)23將回應。read_body24