Getting started with Build Onchain Apps Template
This guide uses Build Onchain Apps Template.
1. Create project
Run the command below and proceed through the following steps, choosing "yes" when asked "Do you want to use Smart Wallet?".
npx @coinbase/build-onchain-apps@latest create
2. Setup project
Open your newly created project, and create a new .env
file in the web
folder. Add the following to this file.
NEXT_PUBLIC_RPC_URL=https://sepolia.base.org
ENVIRONMENT=localhost
3. Install dependencies and run dev
yarn install && yarn dev
Visit your site locally and click the "Connect Wallet" button. You'll see a popup window with a Smart Wallet connection option.