> For the complete documentation index, see [llms.txt](/llms.txt).

# Use Advanced Permissions with Scaffold-ETH 2

Use the [Advanced Permissions (ERC-7715) extension](https://github.com/MetaMask/erc-7715-extension) for [Scaffold-ETH 2](https://docs.scaffoldeth.io/) to bootstrap a project in under two minutes. This extension helps you quickly generate the boilerplate code to request fine-grained permissions from a MetaMask user, and execute transactions on their behalf.

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

- Install [Node.js](https://nodejs.org/en/blog/release/v20.18.3) v20.18.3 or later.
- Install [Yarn](https://yarnpkg.com/) package manager.
- Install [Git](https://git-scm.com/install/).
- [Create a Pimlico API key](https://docs.pimlico.io/guides/create-api-key#create-api-key).

### 1\. Install the extension[​](#1-install-the-extension "Direct link to 1. Install the extension")

Run the following command to install the Smart Accounts Kit extension:

```
npx create-eth@latest -e metamask/erc-7715-extension your-project-name

```

### 2\. Set up environment variables[​](#2-set-up-environment-variables "Direct link to 2. Set up environment variables")

Navigate into the project's `nextjs` package, and create a `.env.local` file. Once created, update the `NEXT_PUBLIC_PIMLICO_API_KEY` environment variable with your Pimlico API Key.

```
cd your-project-name/packages/nextjs
cp .env.example .env.local

```

### 3\. Start the frontend[​](#3-start-the-frontend "Direct link to 3. Start the frontend")

In the project's root directory start the development server.

```
yarn start

```

### 4\. Complete the Advanced Permissions lifecycle[​](#4-complete-the-advanced-permissions-lifecycle "Direct link to 4. Complete the Advanced Permissions lifecycle")

Navigate to the **Advanced Permissions (ERC-7715)** page in your Scaffold-ETH frontend at <http://localhost:3000/erc-7715-permissions>, and follow the steps to request an [advanced permission](/smart-accounts-kit/development/reference/glossary#advanced-permissions)**Advanced Permissions** Fine-grained, wallet execution permissions that dapps can request from MetaMask extension users. Based on ERC-7715., and execute a transaction on the user's behalf.

You can view the completed transaction on Etherscan.

![Scaffold-ETH 2 Advanced Permissions Page](/assets/images/scaffold-eth-7715-5c674d64f8772a80456710e5a83ce76c.png)

## Next steps[​](#next-steps "Direct link to Next steps")

Learn more about [Advanced Permissions (ERC-7715)](/smart-accounts-kit/concepts/advanced-permissions/).
