Solidity Storage Slot Calculator
Exact slot computation for variables, mappings, and dynamic arrays
Layout
0x59ee693a619e7d2eb8a46ce1db969b19e47ba4bd6dc07c02a9243bf3872ccc7b
Mapping value slot = keccak256(abi.encode(key) . p) with p = 0. This is the slot an SLOAD/eth_getStorageAt must target.
Continue with
Passkey Address Deriver
Derive EVM addresses from P-256 passkey public keys. For Ritual Chain TxPasskey and WebAuthn wallets.
DKMS Key Visualizer
Visualize how Ritual agents derive identity keys via DKMS from TEE-held roots to purpose-specific keys.
X402 Payment Encoder
Encode and decode X402 payment payloads for agent-to-agent transactions. Build HTTP 402 challenges.
About the Storage Slot Calculator
Solidity storage layout is deterministic: each declared variable occupies a computed slot. Computing slots by hand (especially for mappings and dynamic arrays, where the slot is keccak256 of key and slot) is where audits go slowly.
This calculator mirrors solc layout rules for value types, mappings, arrays, and packed structs, and shows the exact slot and offset for each variable — the fastest way to write a storage-collision test or a getStorageAt probe.
How to use
- Paste the contract storage declarations.
- Each variable slot and byte offset is computed instantly.
- Use the slots with eth_getStorageAt to verify on-chain values.