eth_getStorageAt RPC 方法
參數
地址
字串
必填
載入中...
職位
字串
必填
載入中...
區塊編號
字串
必填
載入中...
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
1需要 'eth'23client = Eth::Client.create '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將回應
1需要 'eth'23client = Eth::Client.create '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正文: 原始,19redirect: 'follow'20};2122fetch("https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc", requestOptions)23.then(response => response.text())24.then(result => console.log(result))25.catch(error => console.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正文: 原始,19redirect: 'follow'20};2122fetch("https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc", requestOptions)23.then(response => response.text())24.then(result => console.log(result))25.catch(error => console.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
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)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
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)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