scaffold-eth
Skill1 starsChanged 25 days agoMITView on GitHub
Scaffold-ETH 2 (create-eth) is a full-stack EVM dapp starter: Solidity (Hardhat or Foundry) plus a Next.js, wagmi, viem and RainbowKit frontend with typed contract hooks. Use when a hacker says scaffold-eth, SE-2, create-eth, yarn chain, yarn deploy, Debug Contracts, useScaffoldReadContract, useScaffoldWriteContract, scaffold.config.ts, targetNetworks, or wants a contract plus frontend on World Chain, Unichain, Arc, Hedera, 0G or Whitechain fast.
- Reads credentials
In this repository55 other files it gives its agents.
- aaveSkill
- agentkitSkill
- alchemySkill
- backboardSkill
- biconomySkill
- blockscoutSkill
- daimoSkill
- duneSkill
- dynamicSkill
- easSkill
- ensoSkill
- envioSkill
- fetch-aiSkill
- goldskySkill
- hardhatSkill
- litSkill
- livepeerSkill
- morphoSkill
- namespace-53d629Skill
- neynarSkill
- olasSkill
- onramp-moneySkill
- openzeppelinSkill
- pimlicoSkill
- pinataSkill
- ponderSkill
- privySkill
- pushSkill
- quicknodeSkill
- reclaimSkill
- reownSkill
- requestSkill
- safeSkill
- signSkill
- sponsor-chainsSkill
- superfluidSkill
- tenderlySkill
- the-graphSkill
- thirdwebSkill
- track-0gSkill
- track-1inchSkill
- track-arcSkill
- track-arkivSkill
- track-chainlinkSkill
- track-definitiveSkill
- track-efSkill
- track-ensSkill
- track-hederaSkill
- track-uniswapSkill
- track-whitechainSkill
- track-worldSkill
- transakSkill
- web3authSkill
- xmtpSkill
- zerodevSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Create the project without prompts (tested):
- Very specific: line 30
No keys are needed locally.
- Very specific: line 74
Read the docs index for anything not covered here: https://docs.scaffoldeth.io/llms.txt.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Scaffold-ETH 2
Scaffold-ETH 2 (SE-2) gives you a monorepo with a contracts package (packages/hardhat or packages/foundry) and a Next.js app (packages/nextjs). yarn deploy writes your ABIs and addresses to deployedContracts.ts, so the frontend hooks know every contract name and function with full types. A Debug Contracts page lets you call every function without writing UI.
Pick it when you need a contract and a working UI within hours on any EVM chain. Skip it for a backend-only bot or a non-EVM chain, or if you already have a frontend (use plain viem/wagmi instead).
Quickstart
- Needs Node >= 22.10 (the scaffold's
enginesfield; the docs still say 20.18.3), Yarn (any version; the project ships Yarn 4.13 itself) and Git. For the Foundry flavour, install Foundry >= 1.4.0 first (getfoundry.sh). - Create the project without prompts (tested):
This installs everything (about 7 minutes on a fresh machine).npx create-eth@2.0.23 my-dapp -s hardhat # or -s foundry cd my-dapp - Terminal 1:
yarn chain(local Hardhat node or Anvil on127.0.0.1:8545). - Terminal 2:
yarn deploy(deploysYourContractand regeneratespackages/nextjs/contracts/deployedContracts.ts). - Terminal 3:
yarn start, then open http://localhost:3000/debug to call every contract function from the browser. A burner wallet connects on its own (or pick Connect Wallet → Burner Wallet); use the faucet button in the header to get local ETH (the burner only appears whilehardhatis your only target network). - No keys are needed locally. For live apps put your own keys in
packages/nextjs/.env.local(NEXT_PUBLIC_ALCHEMY_API_KEY=<YOUR_KEY>,NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=<YOUR_ID>) andpackages/hardhat/.env(ALCHEMY_API_KEY,ETHERSCAN_API_KEY). - Smallest custom page,
packages/nextjs/app/greet/page.tsx(tested, type-checks and renders live data):"use client"; import type { NextPage } from "next"; import { useScaffoldReadContract, useScaffoldWriteContract } from "~~/hooks/scaffold-eth"; const Greet: NextPage = () => { const { data: greeting } = useScaffoldReadContract({ contractName: "YourContract", functionName: "greeting" }); const { writeContractAsync, isMining } = useScaffoldWriteContract({ contractName: "YourContract" }); return ( <div className="flex flex-col items-center gap-4 pt-10"> <p>Greeting: {greeting}</p> <button className="btn btn-primary" disabled={isMining} onClick={() => writeContractAsync({ functionName: "setGreeting", args: ["gm Mumbai"] }).catch(console.error)} > Set greeting </button> </div> ); }; export default Greet; - Open http://localhost:3000/greet. Before you ship, run
yarn next:check-typesandyarn next:build.
Full setup with every file to touch: references/quickstart.md.
Common tasks
- Pick Hardhat or Foundry and create the project
- Local chain, deploy, Debug Contracts page
- Read, write and event history hooks
- Add a sponsor chain to
scaffold.config.ts(and to Hardhat/Foundry) - Deploy to a testnet with the deployer account and verify
- Use a contract you did not deploy (external contracts)
- Extensions worth using at a hackathon (
create-eth -e) - Deploy the frontend to Vercel
- Errors and gotchas
- Sponsor chains: IDs, viem names, RPCs, verification
Before you write more code
- Read the docs index for anything not covered here: https://docs.scaffoldeth.io/llms.txt. Every page is also served as Markdown (add
.md, for example https://docs.scaffoldeth.io/hooks/useScaffoldReadContract.md). - Inside a scaffolded project, read
AGENTS.mdat the root and.agents/skills/<name>/SKILL.md(ERC-721, SIWE, Ponder, subgraph, x402, EIP-5792, OpenZeppelin, Drizzle+Neon). The project also ships a Context7 MCP config (.mcp.json); there is no official Scaffold-ETH MCP server. - The template changes often. In create-eth 2.0.23 the Hardhat flavour is Hardhat 3 + hardhat-deploy 2 (rocketh), and
scaffold.config.tsusesburnerWalletModeandrpcOverrides. Some docs pages still show older field names. Checknpm view create-eth versionand read the generated files. - Hook types come from
targetNetworks[0]inscaffold.config.ts. If types look wrong, check that first. - When this skill and the official docs disagree, the docs win (except where errors.md shows the docs are behind the current template).
At ETHGlobal Mumbai
- Sponsor chains: works with any EVM chain. viem 2.53.1 (pinned by the template) has
worldchainSepolia,unichainSepolia,arcTestnet,hederaTestnet,zeroGTestnet(16602) andwhitechainSepolia(1874). Arc testnet needs an RPC override and Arc mainnet adefineChain. All six testnets answered read calls from both the Next.js app and Hardhat on 2026-10-19. Details: references/chains.md. For deeper chain facts (faucets, quirks):npx skills add 0xvikram/backboard-skills --skill sponsor-chains. - May help with tracks that need a deployed contract plus a UI on World, Uniswap Foundation (Unichain), Arc, Hedera, 0G or Whitechain, and with ENS (the
Addresscomponent resolves ENS names). Check the tracks and rules yourself: https://ethglobal.com/events/mumbai/prizes - Help: the BuidlGuidl Telegram linked as "Support" on https://scaffoldeth.io (https://t.me/joinchat/KByvmRe5wkR-8F_zz6AjpA), and GitHub issues at https://github.com/scaffold-eth/scaffold-eth-2/issues.
About
Hand-written for Backboard (https://backboard.0xvikram.me), an independent project not affiliated with ETHGlobal or Scaffold-ETH / BuidlGuidl. Tested 2026-10-19 with create-eth@2.0.23 (Hardhat flavour; template viem@2.53.1, wagmi@2.19.5, next@16.2.12, hardhat@3.19.0, hardhat-deploy@2.0.30).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

