query-{view_state} RPC Method
参数
request_type
字符串
正在加载...
最终性
字符串
正在加载...
block_id
integer/string
正在加载...
account_id
字符串
正在加载...
prefix_base64
字符串
正在加载...
after_key_base64
字符串
正在加载...
上限
整数
正在加载...
退货
block_hash
正在加载...
block_height
正在加载...
证明
正在加载...
last_key
正在加载...
values
正在加载...
key
正在加载...
值
正在加载...
证明
正在加载...
请求
1curlmainnet\2--请求 POST \3--header "Content-Type: application/json" \4--data '{"method": "query","params": {"request_type": "view_state", "finality": "final", "account_id": "kiln.poolv1.near", "prefix_base64": ""},"id":1,"jsonrpc":"2.0"}'
1curlmainnet\2--请求 POST \3--header "Content-Type: application/json" \4--data '{"method": "query","params": {"request_type": "view_state", "finality": "final", "account_id": "kiln.poolv1.near", "prefix_base64": ""},"id":1,"jsonrpc":"2.0"}'
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "query",6"params": {7"request_type": "view_state",8"finality": "final",9"account_id": "kiln.poolv1.near",10"prefix_base64": ""11},12"id": 1,13"jsonrpc": "2.0"14});1516var requestOptions = {17方法: 'POST',18标题: myHeaders,19正文: raw,20重定向: 'follow'21};2223fetch(“mainnet”, requestOptions)24.然后(响应 => 响应.text())25.然后(结果 => 控制台.log(result))26.catch(error => 控制台.log('error', error));
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "query",6"params": {7"request_type": "view_state",8"finality": "final",9"account_id": "kiln.poolv1.near",10"prefix_base64": ""11},12"id": 1,13"jsonrpc": "2.0"14});1516var requestOptions = {17方法: 'POST',18标题: myHeaders,19正文: raw,20重定向: 'follow'21};2223fetch(“mainnet”, requestOptions)24.然后(响应 => 响应.text())25.然后(结果 => 控制台.log(result))26.catch(error => 控制台.log('error', error));
1导入 请求2导入 json34url = "mainnet"56有效载荷 = json.dumps({7"method": "query",8"params": {9"request_type": "view_state",10"finality": "final",11"account_id": "kiln.poolv1.near",12"prefix_base64": ""13},14"id": 1,15"jsonrpc": "2.0"16})17标题 = {18“Content-Type”: 'application/json'19}2021回复 = 请求.请求("POST", url, headers=headers, 数据=有效载荷)2223打印(响应.text)24
1导入 请求2导入 json34url = "mainnet"56有效载荷 = json.dumps({7"method": "query",8"params": {9"request_type": "view_state",10"finality": "final",11"account_id": "kiln.poolv1.near",12"prefix_base64": ""13},14"id": 1,15"jsonrpc": "2.0"16})17标题 = {18“Content-Type”: 'application/json'19}2021回复 = 请求.请求("POST", url, headers=headers, 数据=有效载荷)2223打印(响应.text)24
1require "uri"2require "json"3require "net/http"45url = URI("mainnet")67https = Net::HTTP.new(url.host, url.port);8https.use_ssl = true9请求 = Net::HTTP::POST.new(网址)10请求["Content-Type"] = "application/json"11请求.请求正文 = JSON.dump({12"method": "query",13"params": {14"request_type": "view_state",15"finality": "final",16"account_id": "kiln.poolv1.near",17"prefix_base64": ""18},19"id": 1,20"jsonrpc": "2.0"21})2223回复 = https.请求(请求)24返回响应.read_body25
1require "uri"2require "json"3require "net/http"45url = URI("mainnet")67https = Net::HTTP.new(url.host, url.port);8https.use_ssl = true9请求 = Net::HTTP::POST.new(网址)10请求["Content-Type"] = "application/json"11请求.请求正文 = JSON.dump({12"method": "query",13"params": {14"request_type": "view_state",15"finality": "final",16"account_id": "kiln.poolv1.near",17"prefix_base64": ""18},19"id": 1,20"jsonrpc": "2.0"21})2223回复 = https.请求(请求)24返回响应.read_body25