Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Next.js + Base boilerplate for building onchain dapps with Smart Wallet, wagmi, Viem, and Foundry.
Build Onchain Apps Template (BOAT) is an open-source web3 boilerplate from Coinbase that scaffolds a full-stack Ethereum dapp on Base using Next.js, wagmi, Viem, and Foundry.
Build Onchain Apps Template is a starter repository that combines web2 infrastructure with onchain components, saving developers weeks of initial setup. It accepts a Base RPC URL and a WalletConnect Project ID as inputs and outputs a runnable Next.js application with smart wallet authentication, minting and payment examples, and a Foundry-based contract folder. The template targets the Base Ethereum L2 network and is maintained by Coinbase developers under the MIT License.
yarn format and yarn lint commands for easy maintenance.yarn install and yarn dev, then deploying the built-in smart contract to Base Sepolia.jq and updating the deploy address in the web app.Set up begins with two environment variables: a WalletConnect Project ID and a Base RPC URL, both stored in .env.local. After yarn install and yarn dev, the app runs locally; smart contract work happens in the contracts folder with Foundry's forge build and forge script, then the contract address is copied into the frontend's useBuyMeACoffeeContract.ts file.
The template is free and open source, released under the MIT License.
It is an open-source boilerplate from Coinbase for building Ethereum dapps on Base. It bundles Next.js, wagmi, Viem, Tailwind CSS, and Foundry into a single starter project with wallet authentication, minting, payments, and smart contract deployment examples.
The stack includes Next.js for the frontend, Tailwind CSS for styling, wagmi and Viem for Ethereum interactions, Coinbase Smart Wallet for account creation, and Foundry with Anvil for smart contract development and local testing.
Set up a contracts/.env file, get Base Sepolia ETH from a faucet, then run forge script with the Base Sepolia RPC URL from the contracts folder. After deployment, copy the contract address into web/app/buy-me-coffee/_contracts/useBuyMeACoffeeContract.ts.
Yes, it is licensed under the MIT License, so it is free to use, modify, and distribute for personal or commercial projects. No usage fees are mentioned anywhere in the repository.
