# accessList

Description: accessList 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/access-list.mdx

### Signature

```solidity
struct AccessListItem {
  /// The address to be added in access list.
  address target;
  /// The storage keys to be added in access list.
  bytes32[] storageKeys;
}
function accessList(AccessListItem[] calldata access) external;
```

### Description

Utility cheatcode to set an EIP-2930 access list for all subsequent transactions.
