state_queryStorageAt RPC Method - AssetHub
参数
keys
数组
必填
正在加载...
哈希
字符串
正在加载...
退货
结果
数组
正在加载...
块
字符串
正在加载...
changes
数组
正在加载...
请求
1curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/asset-hub' \2--header '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--header '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正文: raw,20重定向: "follow"21};2223fetch(“https://docs-demo.dot-mainnet.quiknode.pro/asset-hub”, requestOptions)24.然后((响应) => 响应.文本())25.然后((结果) => 控制台.log(result))26.catch((error) => 控制台.错误(error));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正文: raw,20重定向: "follow"21};2223fetch(“https://docs-demo.dot-mainnet.quiknode.pro/asset-hub”, requestOptions)24.然后((响应) => 响应.文本())25.然后((结果) => 控制台.log(result))26.catch((error) => 控制台.错误(error));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
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.dot-mainnet.quiknode.pro/asset-hub")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)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
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.dot-mainnet.quiknode.pro/asset-hub")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)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