eth_getStorageAt
BNB Smart Chain / https://triport.io/rpc/bsc
Minimum tier: Free
Last updated:
eth_getStorageAt returns the raw 32-byte-style value stored at one contract storage position at a selected BNB Smart Chain block.
Both the storage position and block number use EVM hex quantities. The result is raw 0x-prefixed byte data; interpreting mappings, packed fields, and other Solidity layouts is the caller's responsibility.
Use this method for a single raw slot. Use eth_getProof when proof material is required, or eth_call when a public contract getter provides the intended abstraction. Historical reads depend on the two confirmed archive-state pool nodes.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| address | Address | Yes | |
| position | Quantity | Yes | |
| block | BlockTag | Yes |
Returns
| Field | Type |
|---|---|
| value | Data |
Examples
curl https://triport.io/rpc/bsc \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getStorageAt","params":["<address>","<position>","<block>"]}'const res = await fetch("https://triport.io/rpc/bsc", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getStorageAt",
"params": [
"<address>",
"<position>",
"<block>"
]
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/rpc/bsc",
headers={"Authorization": "Bearer <api-key>"},
json={"jsonrpc":"2.0","id":1,"method":"eth_getStorageAt","params":["<address>","<position>","<block>"]},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Chain: BNB Smart Chain.
- Clusters: mainnet.
- Credit cost: 1 per call.
FAQ
- What does eth_getStorageAt do?
- Return a contract storage slot at a block.
- How many credits does eth_getStorageAt cost?
- eth_getStorageAt costs 1 credit(s) per call on Triport by default.
- Is eth_getStorageAt available over WebSocket?
- eth_getStorageAt is an HTTP JSON-RPC method.