# setNonceUnsafe

Description: setNonceUnsafe 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/set-nonce-unsafe.mdx

### Signature

```solidity
function setNonceUnsafe(address account, uint64 newNonce) external;
```

### Description

Sets the nonce of an account to an arbitrary value.
