# label

Description: label cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Utilities/label.mdx

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

### Signature

```solidity
function label(address addr, string calldata label) external;
```

### Description

Sets a label `label` for `addr` in test traces.

If an address is labelled, the label will show up in test traces instead of the address.
