ChainFund
All-or-nothing crowdfunding on Ethereum: creators withdraw only if the goal is met, and backers can reclaim their ETH if it isn’t.
- Role
- Team of 2, Blockchain course project, UT Dallas. My part: the Solidity contract and its tests, the Sepolia deployment, and wiring the frontend to the chain.
- Stack

Problem
On a normal crowdfunding site the platform holds the money and decides when the creator gets it. We wanted the rules themselves (the goal, the deadline, who can take the money out and when) to be enforced by a contract anyone can read.
What I built
A Solidity contract where anyone can create a campaign with a goal and deadline. Contributions are tracked per backer. The creator can withdraw once, and only after the goal is reached; if the deadline passes short of the goal, each backer can pull back exactly what they put in. State is updated before ETH is sent, so a second withdraw or refund reverts.
Thirteen Hardhat tests cover the happy paths and every revert: contributing after the deadline, withdrawing early, withdrawing twice, a non-creator withdrawing, and refunds when the goal was met, the campaign is still open, or the caller never contributed.
My part: the contract, the tests, the Sepolia deployment with Hardhat Ignition, and connecting the Next.js app to the chain with wagmi and viem: wallet connection, create and contribute flows, and campaign history read from the contract’s events. Casey Nguyen built the first version of the web UI.
Results
- Live on Vercel against the Sepolia contract
0xe0B93a16313F71B77A73de546557F6483e20B408, with real test-ETH campaigns, backers and USD conversions from CoinGecko.
