state_getRuntimeVersion RPC Method - AssetHub
参数
哈希
字符串
正在加载...
退货
结果
对象
正在加载...
specName
字符串
正在加载...
implName
字符串
正在加载...
authoringVersion
整数
正在加载...
specVersion
整数
正在加载...
implVersion
整数
正在加载...
apis
数组
正在加载...
transactionVersion
整数
正在加载...
systemVersion
整数
正在加载...
stateVersion
整数
正在加载...
请求
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_getRuntimeVersion","params":[]}'
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_getRuntimeVersion","params":[]}'
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5“jsonrpc”: "2.0",6"id": 1,7"method": "state_getRuntimeVersion",8“params”: []9});1011const requestOptions = {12方法: "POST",13标题: myHeaders,14正文: raw,15重定向: "follow"16};1718fetch(“https://docs-demo.dot-mainnet.quiknode.pro/asset-hub”, requestOptions)19.然后((响应) => 响应.文本())20.然后((结果) => 控制台.log(result))21.catch((error) => 控制台.错误(error));22
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5“jsonrpc”: "2.0",6"id": 1,7"method": "state_getRuntimeVersion",8“params”: []9});1011const requestOptions = {12方法: "POST",13标题: myHeaders,14正文: raw,15重定向: "follow"16};1718fetch(“https://docs-demo.dot-mainnet.quiknode.pro/asset-hub”, requestOptions)19.然后((响应) => 响应.文本())20.然后((结果) => 控制台.log(result))21.catch((error) => 控制台.错误(error));22
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_getRuntimeVersion",10“params”: []11})1213标题 = {14“Content-Type”: 'application/json'15}1617回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)18打印(响应.text)19
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_getRuntimeVersion",10“params”: []11})1213标题 = {14“Content-Type”: 'application/json'15}1617回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)18打印(响应.text)19
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_getRuntimeVersion",16“params”: []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 = 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_getRuntimeVersion",16“params”: []17})1819回复 = https.请求(请求)20返回响应.read_body21