Solidity Nested Mapping Subquery

Query a nested mapping

Description

Solidity Nested Mapping Subqueries provide information about a contract's nested mapping (up to a mapping depth of 4) at some past block number. A very useful tool for looking up storage slots/mappings for contract addresses is evm.storage.

Limits

Maximum of 32 (Account + Storage + Nested Mapping) subqueries per Query.

Builder

buildSolidityNestedMappingSubquery(blockNum)

Examples

const nestedMappingSubquery: SolidityNestedMappingSubquery = 
    buildSolidityNestedMappingSubquery(18000000)
    .address("0x1F98431c8aD98523631AE4a59f267346ea31F984")
    .mappingSlot(5)
    .keys([
        "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "0x2E15D7AA0650dE1009710FDd45C3468d75AE1392",
        10000,
    ]);

Above code block corresponds to the following nested mapping:

mapping(address => mapping(address => mapping(uint24 => address))) public override getPool;

Last updated