eth_getStorageAt RPC 方法
参数
地址
字符串
必填
正在加载...
职位
字符串
必填
正在加载...
blockNumber
字符串
必填
正在加载...
NOTE:
The TRON blockchain only supports the usage of the tag latest for this method.
退货
结果
正在加载...
请求
1curl https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getStorageAt","params":["0xE592427A0AEce92De3Edee1F18E0157C05861564", "0x0", "latest"],"id":1,"jsonrpc":"2.0"}'5
1curl https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getStorageAt","params":["0xE592427A0AEce92De3Edee1F18E0157C05861564", "0x0", "latest"],"id":1,"jsonrpc":"2.0"}'5
1require 'eth'23客户 = Eth::客户.创建 'https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc'4有效载荷 = {5“jsonrpc”: "2.0",6"method": "eth_getStorageAt",7"params": ["0xE592427A0AEce92De3Edee1F18E0157C05861564", "0x0", "latest"],8"id": "1"9}1011回复 = 客户端.发送(有效载荷.to_json)12返回响应
1require 'eth'23客户 = Eth::客户.创建 'https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc'4有效载荷 = {5“jsonrpc”: "2.0",6"method": "eth_getStorageAt",7"params": ["0xE592427A0AEce92De3Edee1F18E0157C05861564", "0x0", "latest"],8"id": "1"9}1011回复 = 客户端.发送(有效载荷.to_json)12返回响应
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5“方法”: "eth_getStorageAt",6“params”: [7"0xE592427A0AEce92De3Edee1F18E0157C05861564",8"0x0",9“最新”10],11"id": 1,12“jsonrpc”: "2.0"13});1415var requestOptions = {16方法: 'POST',17标题: myHeaders,18正文: raw,19重定向: 'follow'20};2122fetch(“https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc”, requestOptions)23.然后(响应 => 响应.text())24.然后(结果 => 控制台.log(result))25.catch(error => 控制台.log('error', error));26
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5“方法”: "eth_getStorageAt",6“params”: [7"0xE592427A0AEce92De3Edee1F18E0157C05861564",8"0x0",9“最新”10],11"id": 1,12“jsonrpc”: "2.0"13});1415var requestOptions = {16方法: 'POST',17标题: myHeaders,18正文: raw,19重定向: 'follow'20};2122fetch(“https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc”, requestOptions)23.然后(响应 => 响应.text())24.然后(结果 => 控制台.log(result))25.catch(error => 控制台.log('error', error));26
1导入 请求2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc"56有效载荷 = json.dumps({7“方法”: "eth_getStorageAt",8“params”: [9"0xE592427A0AEce92De3Edee1F18E0157C05861564",10"0x0",11“最新”12],13"id": 1,14“jsonrpc”: "2.0"15})16标题 = {17“Content-Type”: 'application/json'18}1920回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)2122打印(响应.text)23
1导入 请求2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc"56有效载荷 = json.dumps({7“方法”: "eth_getStorageAt",8“params”: [9"0xE592427A0AEce92De3Edee1F18E0157C05861564",10"0x0",11“最新”12],13"id": 1,14“jsonrpc”: "2.0"15})16标题 = {17“Content-Type”: 'application/json'18}1920回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)2122打印(响应.text)23
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13“方法”: "eth_getStorageAt",14“params”: [15"0xE592427A0AEce92De3Edee1F18E0157C05861564",16"0x0",17“最新”18],19"id": 1,20“jsonrpc”: "2.0"21})2223回复 = https.请求(请求)24返回响应.read_body25
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13“方法”: "eth_getStorageAt",14“params”: [15"0xE592427A0AEce92De3Edee1F18E0157C05861564",16"0x0",17“最新”18],19"id": 1,20“jsonrpc”: "2.0"21})2223回复 = https.请求(请求)24返回响应.read_body25