StorageProof
EIP-1186 storage slot proof for trustless contract storage verification.Overview
StorageProof represents a proof for a single storage slot in a contract’s storage trie. It enables trustless verification of contract storage values without executing transactions or trusting external providers.Type Definition
Usage
Create StorageProof
Compare Proofs
API Reference
Constructors
| Function | Description |
|---|---|
from(proof) | Create from StorageProofLike object |
Methods
| Function | Description |
|---|---|
equals(a, b) | Check if two proofs are equal |
Obtaining Storage Proofs
Useeth_getProof with storage slots:
Storage Slot Calculation
Solidity storage layout determines slot numbers:Verification Process
Use Cases
Verify Token Balance
Cross-Chain Storage Proof
Oracle-Free Price Feeds
Proof Structure
Common Storage Slots
| Pattern | Slot Calculation |
|---|---|
| Simple variable | Sequential from 0 |
| Mapping | keccak256(key . slot) |
| Nested mapping | keccak256(key2 . keccak256(key1 . slot)) |
| Dynamic array length | slot |
| Dynamic array element | keccak256(slot) + index |
Specification
- EIP-1186: https://eips.ethereum.org/EIPS/eip-1186
- JSON-RPC:
eth_getProofmethod
See Also
- StateProof - Account state proofs
- StateRoot - State trie root
- Proof - Generic Merkle proof
- State - State primitives

