# getMappingKeyAndParentOf

Description: getMappingKeyAndParentOf cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Environment/get-mapping-key-and-parent-of.mdx

### Signature

```solidity
function getMappingKeyAndParentOf(
  address target,
  bytes32 elementSlot
) external returns (bool found, bytes32 key, bytes32 parent);
```

### Description

Gets the map key and parent of a mapping at a given slot, for a given address.
