chain_storage_slot
Solidity storage slot calculator + reader — Compute the EVM storage slot of any Solidity variable and optionally read it live: mapping entries keccak256(abi.encode(key, slot)) with auto-detected key types (address, uint256, int256, bytes32, bool, string/bytes keys hashed unpadded), nested mappings (key=a,b for m[a][b]), dynamic array elements (index=, element_slots=), struct field offset (offset=) and ERC-7201 namespaced storage (namespace=openzeppelin.storage.ERC20). Shows every derivation step plus the EIP-1967 proxy slots. Add contract= and chain= (ethereum, base, arbitrum, optimism, polygon) to read the slot with eth_getStorageAt and get it decoded as uint and address. Required: slot= (base slot number, decimal or 0x hex) and key= (mapping key) - or namespace= instead of slot. Verified: WETH balanceOf storage (slot 3) matches balanceOf(). Price: $0.002 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slot": "<slot>",
"key": "<key>"
},
"name": "chain_storage_slot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640 | |
| slot | Yes | 3 |