Blockchain
AgriChain
Decentralized marketplace connecting farmers and buyers on-chain
Overview
AgriChain is a decentralized agricultural marketplace that lets farmers list produce and buyers purchase directly through smart contracts — cutting out opaque middlemen and recording every trade on-chain.
The problem it tackles is trust and price fairness in farm-to-market commerce: traditional channels often lack transparent pricing and settlement. AgriChain uses blockchain settlement so both sides can verify what was paid and when.
It's built for farmers, local buyers, and anyone exploring real-world Web3 commerce on a public testnet (Base Sepolia) before mainnet readiness.
My Role
Sole full-stack & smart-contract developer — designed the UI in Next.js, wrote Solidity contracts, wired wallet flows with Wagmi, and deployed the dApp to Vercel on Base Sepolia.
Tech Stack
Key Features
- On-chain listing and purchase flows for agricultural products
- Wallet-connected UI with Wagmi for secure transaction signing
- Transparent pricing and settlement recorded on Base Sepolia
- Responsive Next.js frontend with Tailwind styling
- Smart-contract-backed marketplace logic in Solidity
- Deployed frontend ready for demo and recruiter walkthroughs
Challenges & Solutions
Challenge
Coordinating frontend state with async wallet confirmations so users always knew if a tx was pending, confirmed, or failed.
How I solved it
Built clear loading/success/error UI states around Wagmi hooks and waited on receipt events before updating marketplace views.
Challenge
Keeping contract interactions safe on a public testnet without confusing first-time Web3 users.
How I solved it
Surfaced network checks, readable error messages, and guided connect-wallet prompts before any write call.
Challenge
Balancing a polished product UI with the constraints of early smart-contract iteration.
How I solved it
Kept the Solidity surface area focused on core list/buy paths and iterated the UI independently against deployed contract ABIs.