-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add Scaffold-ETH page #2457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add Scaffold-ETH page #2457
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ad940cd
Add Scaffold-ETH page
alexandratran 1ebe1a2
Merge branch 'main' into 2425-add-scaffold-eth-guide
alexandratran 98c2a9c
minor edits
alexandratran 0065dd3
update scaffold eth section
AyushBherwani1998 5819872
fix the broken links
AyushBherwani1998 0402be6
Merge branch 'main' into 2425-add-scaffold-eth-guide
AyushBherwani1998 e213682
minor edits
alexandratran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| --- | ||
| description: Get started with the Smart Accounts Kit using Scaffold-ETH 2. | ||
| sidebar_label: Use Scaffold-ETH 2 | ||
| keywords: [scaffold-eth, delegation, smart accounts, template] | ||
| --- | ||
|
|
||
| # Use smart accounts with Scaffold-ETH 2 | ||
|
|
||
| Use the Smart Accounts Kit extension for [Scaffold-ETH 2](https://docs.scaffoldeth.io/) to bootstrap a project in under two minutes. | ||
| This extension demonstrates the end-to-end flow for initializing a MetaMask smart account, creating and signing a delegation, and redeeming the delegation. | ||
|
|
||
| ## Run the extension | ||
|
|
||
| 1. Run the following command to install the Smart Accounts Kit extension: | ||
|
|
||
| ```bash | ||
| npx create-eth@latest -e metamask/gator-extension | ||
| ``` | ||
|
|
||
| 2. Upon installation, you'll be asked the following prompts: | ||
| ```bash | ||
| ? Your project name: (my-dapp-example) | ||
| ? What solidity framework do you want to use? | ||
| ❯ hardhat | ||
| foundry | ||
| none | ||
| ``` | ||
| Once you've answered the prompts, the extension will create the project using the specified settings. | ||
|
|
||
| 3. Navigate into the project's `nextjs` package: | ||
| ```bash | ||
| cd my-dapp-example/packages/nextjs | ||
| ``` | ||
| 4. Create a `.env.local` file: | ||
| ```bash | ||
| cp .env.example .env.local | ||
| ``` | ||
| Fill in the `NEXT_PUBLIC_PIMLICO_API_KEY` environment variable with your [Pimlico API key](https://docs.pimlico.io/guides/create-api-key#create-api-key). | ||
| 5. In the root of your project, start the development server: | ||
| ```bash | ||
| yarn start | ||
| ``` | ||
| Navigate to the project in your browser: | ||
| <p align="center"> | ||
| <img src={require("../assets/scaffold-eth.png").default} alt="Scaffold-ETH 2 Smart Accounts Kit" class="appScreen" /> | ||
| </p> | ||
| 6. Connect your MetaMask wallet on the Sepolia testnet. | ||
| In the **MetaMask Smart Accounts & Delegation** section, follow the prompts to deploy a delegator account, create a delegate wallet, create a delegation, and redeem a delegation. | ||
| You can view the completed transaction on Etherscan. | ||
| ## Next steps | ||
| Learn more about [MetaMask Smart Accounts](../concepts/smart-accounts.md) and [delegation](../concepts/delegation/index.md). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.