Docs
Supported ChainszkSync EraJSON-RPC APIAccount Methods

eth_getStorageAt - zkSync RPC Method

Read contract storage on zkSync Era. Essential for analyzing contract state for RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi.

Returns the value from a storage position at a given address on zkSync Era.

Use Cases

  • Contract analysis - Read raw storage values
  • State verification - Verify contract state
  • Security auditing - Analyze storage layout for RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi
  • Protocol monitoring - Track state changes

Request Parameters

Request
addressDATA

20-byte contract address

positionQUANTITY

Storage slot position

blockParameterQUANTITY|TAG

Block number or tag

Response Body

Response

Code Examples

Bash
curl -X POST https://api-zksync-era-mainnet-full.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getStorageAt",
    "params": [
      "0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91",
      "0x0",
      "latest"
    ],
    "id": 1
  }'
JavaScript
import { JsonRpcProvider } from 'ethers';

const provider = new JsonRpcProvider('https://api-zksync-era-mainnet-full.n.dwellir.com/YOUR_API_KEY');

const address = '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91';
const slot = 0;

const storage = await provider.getStorage(address, slot);
console.log('Storage at slot 0:', storage);
Python
from web3 import Web3

w3 = Web3(Web3.HTTPProvider('https://api-zksync-era-mainnet-full.n.dwellir.com/YOUR_API_KEY'))

address = '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91'
storage = w3.eth.get_storage_at(address, 0)
print(f'Storage at slot 0: {storage.hex()}')

On this page