eth_storage_slot
Compute the storage slot for a mapping or dynamic array entry. Provide the layout and key or index to return the slot as decimal and hex.
Instructions
Compute the storage slot for a mapping/array entry given a layout.
layout: {"kind": "mapping"|"dynamic_array", "slot": , ...}
mapping -> needs key; "key_type" (default uint256). For nested
mappings pass key (and optionally "key_type") as lists.
dynamic_array -> needs index; optional "element_size" in slots (default 1).
Returns the slot both as a decimal string and a 0x 32-byte hex word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | Yes | ||
| key | No | ||
| index | No |