eth_getStorageAt
Returns the value from a storage position at a given address.
Parameters
- Address - Address of the storage
- Position - Integer position in storage
- Block Parameter - Block number or "latest", "earliest", "pending"
{
"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x0", "latest"],
"id": 1
}
Returns
DATA
- The value at this storage position.
Implementation Examples
- cURL
- JavaScript
curl -X POST https://api-tron-jsonrpc.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x0", "latest"],
"id": 1
}'
// Using ethers.js
const value = await provider.getStorage('0x295a70b2de5e3953354a6a8344e616ed314d7251', 0);
console.log('Storage value:', value);