# startStateDiffRecording

Description: startStateDiffRecording 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/start-state-diff-recording.mdx

{/* This document contains content copied/adapted from the Foundry Book (MIT licensed). See LICENSE in the parent directory. */}

### Signature

```solidity
function startStateDiffRecording()
```

### Description

Records all state changes as part of CREATE, CALL or SELFDESTRUCT opcodes in order,
along with the context of the calls.
Refer to [`stopAndReturnStateDiff`](/docs/reference/cheatcodes/environment/stop-and-return-state-diff) for more details on how to access and interpret the recorded state changes.
