Skip to content

alchemyplatform/alchemy-wallets-7702-thirdparty-example

Repository files navigation

Using Alchemy Smart Wallets with EIP-7702 to upgrade a Privy Embedded EOA

This is an example repository using Alchemy's Smart Wallet EIP-7702 support to upgrade an existing Privy embedded EOA. This enables features like gas sponsorship, batching, and more. This guide assumes you have already integrated with Privy and have existing embedded EOAs that you'd like to upgrade.

If you are looking for end-to-end embedded smart wallets for social login, gas sponsorship, batching and more, check out Smart Wallets.

Check out our full guide on using EIP-7702 to upgrade existing embedded EOAs with Alchemy Smart Wallets.

Setup

  1. Clone this repository and open it in your terminal.
git clone https://github.com/avarobinson/alchemy-wallets-7702-thirdparty-example.git
  1. Install the necessary dependencies with npm.
npm i 
  1. Initialize your environment variables by copying the .env.example file to an .env.local file. Then, in .env.local paste
# In your terminal, create .env.local from .env.example
cp .env.example .env.local

Building locally

In your project directory, run npm run dev. You can now visit http://localhost:3000 to see your app.

Login with socials, delegate your embedded EOA to a smart account, and send a sponsored transaction from your EOA!

Check out our docs for more guidance around using EIP-7702 with smart wallets!

About

Using a third party signer and Alchemy to delegate an embedded EOA to a smart account using EIP 7702

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages