> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://www.getfoundry.sh/api/mcp` to find what you need.
>
> **Have feedback?** Use `submit_feedback` on the same MCP server.

## Cheatcodes Reference

Cheatcodes give you powerful assertions, the ability to alter the state of the EVM, mock data, and more.

Cheatcodes are made available through use of the cheatcode address (`0x7109709ECfa91a80626fF3989D68f67F5b1DD12D`).

:::tip[Finding Cheatcodes]
Use the sidebar to browse cheatcodes by category, or press `Ctrl+K` / `Cmd+K` to search for a specific cheatcode.
:::

:::note
If you encounter errors for this address when using fuzzed addresses in your tests, you may wish to
exclude it from your fuzz tests by using the following line:

```solidity
 vm.assume(address_ != 0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);
```
:::

You can also access cheatcodes easily via `vm` available in Forge Standard Library's [`Test`](/reference/forge-std/overview) contract.

### Cheatcode Categories

[Environment](/reference/cheatcodes/warp): Manipulate the EVM state: block timestamp, number, msg.sender, storage, balances, and more.

[Assertions](/reference/cheatcodes/expect-revert): Expect reverts, events, and calls in your tests.

[Fuzzer](/reference/cheatcodes/assume): Control fuzzer behavior with assumptions and constraints.

[Forking](/reference/cheatcodes/create-fork): Create and manage forks of live networks.

[External](/reference/cheatcodes/ffi): Interact with the outside world: run commands, read environment variables, parse JSON/TOML.

[Signing](/reference/cheatcodes/sign): Sign messages and EIP-7702 delegations.

[Utilities](/reference/cheatcodes/addr): Helper functions for addresses, labels, parsing, and wallets.

[Files](/reference/cheatcodes/fs): Read and write files from your tests and scripts.

[RPC](/reference/cheatcodes/rpc): Register and interact with RPC endpoints.

[State Snapshots](/reference/cheatcodes/state-snapshots): Snapshot and restore EVM state.

### Forge Standard Library

Forge Std implements wrappers around cheatcodes, which combine multiple standard cheatcodes to improve development experience. See [Std Cheats](/reference/forge-std/std-cheats) for more details.

### Contributing

If you need a new cheatcode, consider [contributing to the Foundry codebase](https://github.com/foundry-rs/foundry).

### Cheatcodes Interface

The complete Solidity interface for all cheatcodes is available in the [forge-std repository](https://github.com/foundry-rs/forge-std/blob/master/src/Vm.sol).
