state_getStorage RPC Method - AssetHub
パラメータ
キー
文字列
必須
読み込み中...
ハッシュ
文字列
読み込み中...
返品
結果
文字列
読み込み中...
リクエスト
1curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/asset-hub' \2--header 'Content-Type: application/json' \3--data '{"jsonrpc":"2.0","id":1,"method":"state_getStorage","params":["0x0d715f2646c8f85767b5d2764bb2782604a74d81251e398fd8a0a4d55023bb3f"]}'
1curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/asset-hub' \2--header 'Content-Type: application/json' \3--data '{"jsonrpc":"2.0","id":1,"method":"state_getStorage","params":["0x0d715f2646c8f85767b5d2764bb2782604a74d81251e398fd8a0a4d55023bb3f"]}'
1const myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34const raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 1,7"method": "state_getStorage",8"params": ["0x0d715f2646c8f85767b5d2764bb2782604a74d81251e398fd8a0a4d55023bb3f"]9});1011const requestOptions = {12メソッド: "POST",13ヘッダー: myHeaders,14本文: raw,15リダイレクト: "follow"16};1718fetch("https://docs-demo.dot-mainnet.quiknode.pro/asset-hub", requestOptions)19.その後((レスポンス) => レスポンス.text())20.その後((結果) => コンソール.log(result))21.catch((エラー) => コンソール.エラー(エラー));22
1const myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34const raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 1,7"method": "state_getStorage",8"params": ["0x0d715f2646c8f85767b5d2764bb2782604a74d81251e398fd8a0a4d55023bb3f"]9});1011const requestOptions = {12メソッド: "POST",13ヘッダー: myHeaders,14本文: raw,15リダイレクト: "follow"16};1718fetch("https://docs-demo.dot-mainnet.quiknode.pro/asset-hub", requestOptions)19.その後((レスポンス) => レスポンス.text())20.その後((結果) => コンソール.log(result))21.catch((エラー) => コンソール.エラー(エラー));22
1import リクエスト2import json34url = "https://docs-demo.dot-mainnet.quiknode.pro/asset-hub"56ペイロード = json.dumps({7"jsonrpc": "2.0",8"id": 1,9"method": "state_getStorage",10"params": ["0x0d715f2646c8f85767b5d2764bb2782604a74d81251e398fd8a0a4d55023bb3f"]11})1213ヘッダー = {14「Content-Type」: 'application/json'15}1617回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)18印刷(レスポンス.text)19
1import リクエスト2import json34url = "https://docs-demo.dot-mainnet.quiknode.pro/asset-hub"56ペイロード = json.dumps({7"jsonrpc": "2.0",8"id": 1,9"method": "state_getStorage",10"params": ["0x0d715f2646c8f85767b5d2764bb2782604a74d81251e398fd8a0a4d55023bb3f"]11})1213ヘッダー = {14「Content-Type」: 'application/json'15}1617回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)18印刷(レスポンス.text)19
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.dot-mainnet.quiknode.pro/asset-hub")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["Content-Type"] = "application/json"12リクエスト.本文 = JSON.dump({13"jsonrpc": "2.0",14"id": 1,15"method": "state_getStorage",16"params": ["0x0d715f2646c8f85767b5d2764bb2782604a74d81251e398fd8a0a4d55023bb3f"]17})1819回答 = https.リクエスト(リクエスト)20レスポンスを格納する.read_body21
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.dot-mainnet.quiknode.pro/asset-hub")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["Content-Type"] = "application/json"12リクエスト.本文 = JSON.dump({13"jsonrpc": "2.0",14"id": 1,15"method": "state_getStorage",16"params": ["0x0d715f2646c8f85767b5d2764bb2782604a74d81251e398fd8a0a4d55023bb3f"]17})1819回答 = https.リクエスト(リクエスト)20レスポンスを格納する.read_body21