state_queryStorageAt RPC Method - AssetHub
參數
鍵
陣列
必填
載入中...
hash
字串
載入中...
退貨
結果
陣列
載入中...
區塊
字串
載入中...
變更
陣列
載入中...
請求
1curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/asset-hub' \2--標頭 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"id": 1,6"method": "state_queryStorageAt",7"params": [8[9"0x26aa394eea5630e07c48ae0c9558cef7"10],11"0x298f8c5f8572a869abe215216c0b12b255bc325407dd115b410dd0224418baa4"12]13}'
1curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/asset-hub' \2--標頭 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"id": 1,6"method": "state_queryStorageAt",7"params": [8[9"0x26aa394eea5630e07c48ae0c9558cef7"10],11"0x298f8c5f8572a869abe215216c0b12b255bc325407dd115b410dd0224418baa4"12]13}'
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 1,7"method": "state_queryStorageAt",8"params": [9[10"0x26aa394eea5630e07c48ae0c9558cef7"11],12"0x298f8c5f8572a869abe215216c0b12b255bc325407dd115b410dd0224418baa4"13]14});1516const requestOptions = {17方法: 「POST」,18標題: myHeaders,19正文: 原始,20重定向: 「追蹤」21};2223fetch("https://docs-demo.dot-mainnet.quiknode.pro/asset-hub", requestOptions)24.接著((回應) => 回應.文字())25.接著((結果) => 控制台.log(結果))26.catch((錯誤) => 控制台.錯誤(錯誤));27
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 1,7"method": "state_queryStorageAt",8"params": [9[10"0x26aa394eea5630e07c48ae0c9558cef7"11],12"0x298f8c5f8572a869abe215216c0b12b255bc325407dd115b410dd0224418baa4"13]14});1516const requestOptions = {17方法: 「POST」,18標題: myHeaders,19正文: 原始,20重定向: 「追蹤」21};2223fetch("https://docs-demo.dot-mainnet.quiknode.pro/asset-hub", requestOptions)24.接著((回應) => 回應.文字())25.接著((結果) => 控制台.log(結果))26.catch((錯誤) => 控制台.錯誤(錯誤));27
1匯入 請求2import json34url = "https://docs-demo.dot-mainnet.quiknode.pro/asset-hub"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"id": 1,9"method": "state_queryStorageAt",10"params": [11[12"0x26aa394eea5630e07c48ae0c9558cef7"13],14"0x298f8c5f8572a869abe215216c0b12b255bc325407dd115b410dd0224418baa4"15]16})1718標題 = {19「Content-Type」: 'application/json'20}2122回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)23列印(回應.text)24
1匯入 請求2import json34url = "https://docs-demo.dot-mainnet.quiknode.pro/asset-hub"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"id": 1,9"method": "state_queryStorageAt",10"params": [11[12"0x26aa394eea5630e07c48ae0c9558cef7"13],14"0x298f8c5f8572a869abe215216c0b12b255bc325407dd115b410dd0224418baa4"15]16})1718標題 = {19「Content-Type」: 'application/json'20}2122回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)23列印(回應.text)24
1需要 "uri"2require "json"3需要 "net/http"45url = 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"jsonrpc": "2.0",14"id": 1,15"method": "state_queryStorageAt",16"params": [17[18"0x26aa394eea5630e07c48ae0c9558cef7"19],20"0x298f8c5f8572a869abe215216c0b12b255bc325407dd115b410dd0224418baa4"21]22})2324回應 = https.請求(請求)25將回應。read_body26
1需要 "uri"2require "json"3需要 "net/http"45url = 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"jsonrpc": "2.0",14"id": 1,15"method": "state_queryStorageAt",16"params": [17[18"0x26aa394eea5630e07c48ae0c9558cef7"19],20"0x298f8c5f8572a869abe215216c0b12b255bc325407dd115b410dd0224418baa4"21]22})2324回應 = https.請求(請求)25將回應。read_body26