# Upgrade your EOA to a Mimic 7702

Traditional EOAs are designed for manual interaction and typically require repeated approvals and signatures, making them a poor fit for automated workflows.

This guide shows how to upgrade an existing EOA into a **Mimic 7702 smart account**, enabling automation-friendly behavior **without deploying a new smart account contract**.

***

### Can I deploy a smart account contract instead?

Yes, that's possible. However, there are some downsides to bear in mind:

* Deployment requires gas
* A new address must be managed
* Funds often need to be migrated

For many users, this upfront complexity is unnecessary.

***

### What EIP-7702 enables

EIP-7702 allows an EOA to **authorize a smart account implementation** via a special transaction.

This means:

* The EOA keeps the same address
* No deployment step is required
* The account can behave like a smart account when needed

***

### How Mimic uses EIP-7702

Mimic uses EIP-7702 to let EOAs opt into richer execution behavior only when required.

Once upgraded:

* The EOA can participate in automation flows
* Execution logic is delegated safely
* Repeated approvals are avoided

All execution complexity is handled by Mimic.

***

### Upgrading your EOA

Mimic provides a small [command-line tool](https://github.com/mimic-fi/mimic-7702-upgrade/) that performs the upgrade in a single transaction.

At a high level:

1. Configure your RPC and private key
2. Specify the official Mimic Smart Account address
3. Run the upgrade command

From your command line, clone the repository:

```bash
git clone https://github.com/mimic-fi/mimic-7702-upgrade
```

Enter the cloned repository and install dependencies:

```bash
cd mimic-7702-upgrade && yarn
```

Create a `.env` file from the example:

```bash
cp .env.example .env
```

Fill in the following variables:

* `RPC_URL` – RPC endpoint for the target chain
* `PRIVATE_KEY` – EOA private key to be upgraded
* `SMART_ACCOUNT_ADDRESS` – Official Mimic EIP-7702 Smart Account implementation address

{% hint style="warning" %}
EIP-7702 authorization is powerful. Only authorize Smart Account addresses provided by official Mimic sources.
{% endhint %}

#### Upgrade your EOA

```bash
yarn upgrade-7702
```

This sends a zero-value self-transaction containing an EIP-7702 authorization that upgrades the EOA to a Mimic smart account.

#### Check status

```bash
yarn status
```

This prints basic wallet and network information and provides helpful explorer links for manual verification.

#### Rollback your EOA

```bash
yarn downgrade-7702
```

This sends a zero-value self-transaction containing an EIP-7702 authorization that rolls back your EOA to its original status.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mimic.fi/examples/upgrade-your-eoa-to-a-mimic-7702.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
