eth_getStorageAt RPC 메서드
To use the eth_getStorageAt method on the C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.
매개변수
주소
문자열
필수
로딩 중...
위치
문자열
필수
로딩 중...
블록 번호
문자열
필수
로딩 중...
반품
결과
문자열
로딩 중...
요청
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_getStorageAt",6"params": [7"0x295a70b2de5e3953354a6a8344e616ed314d7251",8"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",9"0x65a8db"10],11"id": 112}'
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_getStorageAt",6"params": [7"0x295a70b2de5e3953354a6a8344e616ed314d7251",8"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",9"0x65a8db"10],11"id": 112}'
1import { ethers } from "ethers";23async 함수 main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/");5const response = await provider.send("eth_getStorageAt", [6"0x295a70b2de5e3953354a6a8344e616ed314d7251",7"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",8"0x65a8db"9]);10콘솔.log(응답);11}1213main();
1import { ethers } from "ethers";23async 함수 main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/");5const response = await provider.send("eth_getStorageAt", [6"0x295a70b2de5e3953354a6a8344e616ed314d7251",7"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",8"0x65a8db"9]);10콘솔.log(응답);11}1213main();
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/'))3response = w3.provider.make_request("eth_getStorageAt", ["0x295a70b2de5e3953354a6a8344e616ed314d7251","0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9","0x65a8db"])4인쇄(응답)
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/'))3response = w3.provider.make_request("eth_getStorageAt", ["0x295a70b2de5e3953354a6a8344e616ed314d7251","0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9","0x65a8db"])4인쇄(응답)
1import { createPublicClient, http } 출처: 'viem'23async 함수 main() {4const client = createPublicClient({5transport: http('https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/')6})78const result = await client.request({9메서드: 'eth_getStorageAt',10params: [11"0x295a70b2de5e3953354a6a8344e616ed314d7251",12"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",13"0x65a8db"14]15})1617콘솔.log(결과)18}1920main()
1import { createPublicClient, http } 출처: 'viem'23async 함수 main() {4const client = createPublicClient({5transport: http('https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/')6})78const result = await client.request({9메서드: 'eth_getStorageAt',10params: [11"0x295a70b2de5e3953354a6a8344e616ed314d7251",12"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",13"0x65a8db"14]15})1617콘솔.log(결과)18}1920main()
1import { QuicknodeSdk } from '@quicknode/sdk'23const qn = new QuicknodeSdk({})45const result = await qn.rpc.call(6'eth_getStorageAt',7[8"0x295a70b2de5e3953354a6a8344e616ed314d7251",9"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",10"0x65a8db"11],12undefined,13'https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/'14)1516console.log(result)
1import { QuicknodeSdk } from '@quicknode/sdk'23const qn = new QuicknodeSdk({})45const result = await qn.rpc.call(6'eth_getStorageAt',7[8"0x295a70b2de5e3953354a6a8344e616ed314d7251",9"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",10"0x65a8db"11],12undefined,13'https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/'14)1516console.log(result)
1import asyncio2from quicknode_sdk import QuicknodeSdk, SdkFullConfig34async def main():5qn = QuicknodeSdk(SdkFullConfig(api_key=None))6result = await qn.rpc.call(7"eth_getStorageAt",8[9"0x295a70b2de5e3953354a6a8344e616ed314d7251",10"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",11"0x65a8db"12],13endpoint_url="https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/",14)15print(result)1617asyncio.run(main())
1import asyncio2from quicknode_sdk import QuicknodeSdk, SdkFullConfig34async def main():5qn = QuicknodeSdk(SdkFullConfig(api_key=None))6result = await qn.rpc.call(7"eth_getStorageAt",8[9"0x295a70b2de5e3953354a6a8344e616ed314d7251",10"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",11"0x65a8db"12],13endpoint_url="https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/",14)15print(result)1617asyncio.run(main())
1require "quicknode_sdk"23qn = QuicknodeSdk::SDK.from_config(api_key: nil)45result = qn.rpc.call(6메서드: "eth_getStorageAt",7params: [8"0x295a70b2de5e3953354a6a8344e616ed314d7251",9"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",10"0x65a8db"11],12endpoint_url: "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/"13)1415결과를 출력합니다
1require "quicknode_sdk"23qn = QuicknodeSdk::SDK.from_config(api_key: nil)45result = qn.rpc.call(6메서드: "eth_getStorageAt",7params: [8"0x295a70b2de5e3953354a6a8344e616ed314d7251",9"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",10"0x65a8db"11],12endpoint_url: "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/"13)1415결과를 출력합니다
1use quicknode_sdk::{QuicknodeSdk, SdkFullConfig};23#[tokio::main]4async fn main() -> Result<(), Box<dyn std::error::Error>> {5let qn = QuicknodeSdk::new(&SdkFullConfig::keyless())?;6let result = qn7.rpc8.call(9"eth_getStorageAt",10Some(serde_json::json!([11"0x295a70b2de5e3953354a6a8344e616ed314d7251",12"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",13"0x65a8db"14])),15None,16Some("https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/".into()),17)18.await?;1920println!("{result}");21알겠습니다(())22}
1use quicknode_sdk::{QuicknodeSdk, SdkFullConfig};23#[tokio::main]4async fn main() -> Result<(), Box<dyn std::error::Error>> {5let qn = QuicknodeSdk::new(&SdkFullConfig::keyless())?;6let result = qn7.rpc8.call(9"eth_getStorageAt",10Some(serde_json::json!([11"0x295a70b2de5e3953354a6a8344e616ed314d7251",12"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",13"0x65a8db"14])),15None,16Some("https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/".into()),17)18.await?;1920println!("{result}");21알겠습니다(())22}
1const 본문 = {2jsonrpc: '2.0',3메서드: 'eth_getStorageAt',4params: ["0x295a70b2de5e3953354a6a8344e616ed314d7251","0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9","0x65a8db"],5id: 16}78async 함수 main() {9const response = await fetch('https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/', {10메서드: 'POST',11headers: {'Content-Type': 'application/json'},12본문: JSON.stringify(body)13})14const data = await response.json()15콘솔.log(데이터)16}1718main()
1const 본문 = {2jsonrpc: '2.0',3메서드: 'eth_getStorageAt',4params: ["0x295a70b2de5e3953354a6a8344e616ed314d7251","0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9","0x65a8db"],5id: 16}78async 함수 main() {9const response = await fetch('https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/', {10메서드: 'POST',11headers: {'Content-Type': 'application/json'},12본문: JSON.stringify(body)13})14const data = await response.json()15콘솔.log(데이터)16}1718main()
1import 요청2import json34url = "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/"56페이로드 = json.dumps({7"jsonrpc": "2.0",8"방법": "eth_getStorageAt",9"params": [10"0x295a70b2de5e3953354a6a8344e616ed314d7251",11"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",12"0x65a8db"13],14"id": 115})16헤더 = {17'Content-Type': 'application/json'18}1920답변 = 요청.요청("POST", url, 헤더=헤더, 데이터=페이로드)2122인쇄(응답.text)
1import 요청2import json34url = "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/"56페이로드 = json.dumps({7"jsonrpc": "2.0",8"방법": "eth_getStorageAt",9"params": [10"0x295a70b2de5e3953354a6a8344e616ed314d7251",11"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9",12"0x65a8db"13],14"id": 115})16헤더 = {17'Content-Type': 'application/json'18}1920답변 = 요청.요청("POST", url, 헤더=헤더, 데이터=페이로드)2122인쇄(응답.text)
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/")67페이로드 = {8jsonrpc: "2.0",9id: 1,10메서드: "eth_getStorageAt",11params: ["0x295a70b2de5e3953354a6a8344e616ed314d7251","0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9","0x65a8db"]12}1314요청 = 순::HTTP::POST.새(URI)15요청["Content-Type"] = "application/json"16요청.본문 = JSON.생성(페이로드)1718답변 = 순::HTTP.시작(uri.host, uri.port, use_ssl: true) do |http|19http.요청(요청)20끝2122응답을 반환합니다.본문
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/")67페이로드 = {8jsonrpc: "2.0",9id: 1,10메서드: "eth_getStorageAt",11params: ["0x295a70b2de5e3953354a6a8344e616ed314d7251","0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9","0x65a8db"]12}1314요청 = 순::HTTP::POST.새(URI)15요청["Content-Type"] = "application/json"16요청.본문 = JSON.생성(페이로드)1718답변 = 순::HTTP.시작(uri.host, uri.port, use_ssl: true) do |http|19http.요청(요청)20끝2122응답을 반환합니다.본문
답변
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0x0000000000000000000000ea51815c117b81ea2842a21227c06cdadffa269e00"5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0x0000000000000000000000ea51815c117b81ea2842a21227c06cdadffa269e00"5}