Skip to main content
Anugrah E.

AgroChain

Follow a single crop from farm to table to understand the architecture of trust.

Scroll to Begin
Farmer Profile
Verified Identity
Organic Coffee Beans
Qty: 500kg | $4.20/kg
Upload to Network

Meet the Farmer

The journey begins at the source. The farmer uses a simple, native mobile application to digitize their physical harvest.

They upload the crop type, quantity, price, and images. With a single tap, the crop leaves the physical world and enters the digital ecosystem.

Verification

The crop is waiting. Nothing happens immediately.

A decentralized Verifier must review the farmer's identity, crop details, and physical evidence. Only after approval does the crop become visible in the Marketplace.

Verifier Node
Reviewing Submission...
Farmer Identity
Crop Information
Physical Images
Approval Granted

Marketplace

A Retailer enters the decentralized marketplace and browses verified crops.

They choose the organic coffee beans and place an order. The farmer instantly receives a notification and accepts the order. The lifecycle begins.

Retailer
Browsing Marketplace
Farmer
Order Received
Retailer
Farmer
Stripe Fiat Gateway
Abstracting crypto volatility away from rural farmers.

Payment

Cryptocurrency volatility is a non-starter for rural farmers who need predictable income.

When the Retailer pays, we introduce Stripe to handle the fiat clearing. The system routes the payment securely, confirms it, and notifies the Farmer. Technology is used strictly to solve a real-world constraint.

Transport

A Transporter accepts the delivery request.

The GPS activates. We use Leaflet to map the coordinates in real-time. The Retailer watches the truck move from the farm to the warehouse, with cryptographic checkpoints along the way.

Farm
Retailer

Delivery Confirmed

The truck reaches the warehouse. The physical handoff occurs, and the final state is cryptographically signed. The marketplace lifecycle is complete.

Firestore
"farmer": "0x12aF..."
"crop": "Coffee Beans"
"location": [12.34, 56.78]
Images & Relational Data Loaded
Ethereum Ledger
TX: 0x9f86d081884c7d659a2fe...
BLOCK: 18239401
STATUS: Verified
Immutable Proof Generated

Customer Transparency

A customer buys the coffee at the store and scans the QR code on the bag.

This is where blockchain finally appears. It's not a buzzword; it is the definitive answer to: "How can I trust this product?"

The app merges rich off-chain data (images, farmer stories) from Firestore with the immutable on-chain hashes from Ethereum, generating a verifiable Transparency Report.

System Architecture

Now that you understand the journey, the architecture builds itself. See how the technologies map directly to the real-world problems they solve.

Farmer / Verifier
Data Entry & Approval
Marketplace
Orders & Fiat Payment
Customer
Transparency & Trust

My Contribution

Product Idea & Vision
Problem Identification
Workflow Design
Blockchain Research
Smart Contract Implementation
Firebase & Stripe Integration
Live Tracking & QR
AI-Assisted Scaffolding
Testing & Debugging

Development Methodology

I approached this iteratively. Heavy frontend boilerplate was scaffolded using AI, allowing me to focus entirely on the critical architecture: syncing Firebase's optimistic state with Ethereum's slow, immutable state.

Hardest Challenge

Synchronizing asynchronous blockchain events with a real-time UI. Stripe payments process in seconds, but mining a block takes ~15 seconds. Designing webhooks and optimistic UI updates to prevent the app from feeling "broken" during mining was brutal.

What I Learned

Systems thinking supersedes syntax. Designing the hybrid off-chain/on-chain boundary forced me to accept harsh tradeoffs between decentralization and user experience.

Future Improvements

Migrating smart contracts to a Layer-2 (Arbitrum/Polygon) to eliminate gas friction. I also plan to implement local-first offline syncing for farmers in zero-connectivity zones.