Skip to content

5afe/safe-7579-tutorial

Repository files navigation

How to build an app with Safe and ERC-7579

This example app shows how to create a web app for using ERC-7579 in your Safe. Please read How to build an app with Safe and ERC-7579 to see how this app was created.

What you’ll need

Prerequisite knowledge: You will need some basic experience with React, Next.js, and ERC-7579.

Before progressing with the tutorial, please make sure you have:

Getting Started

To install this example application, run the following commands:

git clone https://github.com/5afe/safe-7579-tutorial.git
cd safe-7579-tutorial
pnpm i

This will get a copy of the project installed locally. Now, create a file named .env.local at the root of your project, and add your Pimlico API key to it:

echo "NEXT_PUBLIC_PIMLICO_API_KEY='your_pimlico_api_key_goes_here'" > .env.local

Run the local development server with the following command:

pnpm dev

Go to http://localhost:3000 in your browser to see the application.

Help

Please post any questions on Stack Exchange with the safe-core tag.

License

MIT, see LICENSE.