# fee

Description: fee 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/fee.mdx

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

### Signature

```solidity
function fee(uint256) external;
```

### Description

Sets `block.basefee`.

### Examples

```solidity
vm.fee(25 gwei);
emit log_uint(block.basefee); // 25000000000
```
