Installation
Requirements
Before you begin, you need to install the following tools:
- Node (>= v20.18.3)
- Yarn (v1 or v2+)
- Git
Setup
For a simplified setup, Scaffold-ETH 2 offers a npx tool that guides you interactively through the setup:
npx create-eth@latestYou will be presented with a series of prompts:
- Project Name: Enter a name for your project, e.g., my-dapp-example.
- Solidity Framework Choose your preferred solidity framework (Hardhat, Foundry)
Once the setup is complete, navigate to the project directory:
cd project-nameIf you want to use extensions, you can add the -e flag followed by the extension name:
npx create-eth@latest -e extension-nameFor more information about available extensions and how to use them, check out the Extensions section