Welcome Back
Sign in to your PestVid account
Don't have an account? Sign up here
Join PestVid
Create your account to get started
Already have an account? Sign in here
PestiVid: Blockchain Transparency in Agriculture
A secure, video-verified agricultural marketplace with investment opportunities. Farmers prove quality and safety via field recordings stored on decentralized storage (IPFS via Pinata) and linked via a simulated blockchain. Buyers purchase crops with complete confidence and traceability. Investors fund projects with transparent returns.
- Avalanche blockchain transactions with MetaMask
- Decentralized video storage (IPFS via Pinata)
- Full traceability for buyers
- Direct, transparent marketplace transactions
- Investment opportunities for funders
- Secure messaging between users
- Real-time notifications
How It Works
Farmers film direct evidence of their crop and practices.
Videos & info are securely uploaded and stored decentrally.
Buyers view blockchain-linked video before any purchase.
Login provides access to buying, selling, or investing.
Agricultural Investment Platform
Invest in verified agricultural projects with full transparency. Track your investments through Avalanche blockchain technology and share in the harvest profits.
Fund Crops
Invest in specific crops with transparent land use and practices.
Share Returns
Receive dividends based on harvest yields and market prices.
Secure Blockchain
All investments and harvests recorded on immutable ledger (Simulated).
PestiVid: Record Crop Video
Wallet Connection Optional
You can record and upload videos without a wallet. Connect your wallet later when you want to sell crops or receive payments.
β Real-time Avalanche Wallet Connected
Configuration Needed:
A valid Pinata JWT is required for video uploads to IPFS. The current JWT is a placeholder. Please update it in the script.
User: {{ currentUser ? currentUser.name : 'Farmer' }} (Role: Farmer)
You are logged in as a Farmer. You can upload videos and manage farmer features.
Allow camera access. Video file is stored locally until upload.
This video is now available in your AgriStream. View in AgriStream.
You can also use it later to: Create a Listing, or Use for Funding Request.
Video uploaded for selling! You should be redirected to create a listing. If not, click here to complete the listing.
Video uploaded for a funding request! You should be redirected to create the request. If not, click here to complete the funding request.
AgriStream: My Crop Videos
User: {{ currentUser ? currentUser.name : 'Farmer' }} (Role: Farmer)
Viewing videos uploaded by you. Demo videos from other sample users may also appear if they exist in the shared data.
No uploads yet. Go to PestiVid to upload.
Sell Farm Crop on Marketplace
User: {{ currentUser ? currentUser.name : 'Farmer' }} (Role: Farmer)
Create and manage listings for your own uploaded videos. Connect wallet when ready to receive payments.
Your Active Listings
-
{{ l.crop }} ({{l.location}})
CID: {{l.cid.substring(0, 8)}}... ({{l.storageType || 'ipfs'}}) | Pest. Co: {{ l.pesticideCompany || 'N/A' }}Buyers notifiedMin: {{ l.minPrice }} AVAX
Max: {{ l.maxPrice }} AVAX
Request Funding for Your Farm
User: {{ currentUser ? currentUser.name : 'Farmer' }} (Role: Farmer)
Create and manage funding requests for your own projects. Connect wallet when ready to receive investments.
Your Active Funding Requests
{{ req.title }}
Transport Services
User: {{ currentUser ? currentUser.name : 'Farmer' }} (Role: Farmer)
Request transport services for your crops. Connect with verified transporters for pickup and delivery.
Request Transport Service
Your Transport Requests ({{ farmerTransportRequests.length }})
No transport requests yet
Create your first transport request above
{{ request.crop }} Transport
{{ request.quantity }}kg β’ {{ request.urgency }} priority
Assigned Transporter
{{ request.transporter.name }}
{{ request.transporter.vehicle }} β’ {{ request.transporter.phone }}
AgriSell: Marketplace
User: {{ currentUser ? currentUser.name : 'Buyer' }} (Role: Buyer)
Browse listings from farmers and simulate purchases.
No listings found matching your criteria. Try adjusting your filters.
{{ l.minPrice }} - {{ l.maxPrice }} AVAX
Transport Services - Buyer Portal
User: {{ currentUser ? currentUser.name : 'Buyer' }} (Role: Buyer)
Request transport for your purchased crops or coordinate delivery with farmers.
Request Crop Delivery
Your Delivery Requests ({{ buyerTransportRequests.length }})
No delivery requests yet
Request delivery for your purchased crops above
{{ request.crop }} Delivery
{{ request.urgency }} priority β’ {{ request.estimatedCost }} SOL
Assigned Transporter
{{ request.transporter.name }}
{{ request.transporter.vehicle }} β’ {{ request.transporter.phone }}
Become a Transport Provider
Join our transport network and earn by providing delivery services
Registration requires a small blockchain fee and vehicle verification
Transport Services - Investor Portal
User: {{ currentUser ? currentUser.name : 'Investor' }} (Role: Investor)
Coordinate transport for your funded projects and investment deliveries.
Investment Project Transports
No transport requests for your investments yet
Transport requests will appear when farmers need to deliver funded crops
{{ request.projectTitle }} - {{ request.crop }}
Investment transport β’ {{ request.urgency }} priority
Available Transport Providers
{{ provider.name }}
{{ provider.available ? 'Available' : 'Busy' }}{{ provider.vehicle }}
{{ provider.capacity }}kg capacity
{{ provider.phone }}
{{ provider.ratePerKm }} SOL/km
Become a Transport Provider
Join our transport network and earn by providing delivery services
Registration requires a small blockchain fee and vehicle verification
Transporter Dashboard
Welcome, {{ currentTransporter ? currentTransporter.name : 'Transporter' }}!
Manage your transport business, view available jobs, and track your earnings on the PestVid platform.
Complete Your Registration
You need to register as a transport provider to access the dashboard.
Completed Jobs
{{ currentTransporter.completedJobs || 0 }}
Active Jobs
{{ getActiveTransportJobs().length }}
Total Earnings
{{ (currentTransporter.earnings || 0).toFixed(4) }} SOL
Rating
{{ (currentTransporter.rating || 5.0).toFixed(1) }}
Quick Actions
Recent Activity
No recent activity
Start accepting transport jobs to see activity here
{{ activity.crop }} Transport
{{ activity.pickupLocation }} β {{ activity.deliveryLocation }}
{{ activity.estimatedCost }} SOL
{{ formatTimestamp(activity.createdAt, true) }}
Transporter Profile
{{ currentTransporter ? 'Update Your Profile' : 'Complete Your Registration' }}
{{ currentTransporter ? 'Keep your transport service information up to date.' : 'Register as a transport provider and start earning SOL by delivering agricultural products.' }}
{{ currentTransporter ? 'Update Transport Service' : 'Register Your Transport Service' }}
Current Transport Providers ({{ transportProviders.length }})
{{ provider.name }}
{{ provider.available ? 'Available' : 'Busy' }}{{ provider.vehicle }}
{{ provider.capacity }}kg capacity
{{ provider.ratePerKm }} SOL/km
Registered {{ formatTimestamp(provider.registeredAt, true) }}
Available Transport Jobs
Find Transport Opportunities
Browse and accept transport requests from farmers, buyers, and investors. Jobs are assigned using FIFO + Price optimization.
Filter Jobs
Available Jobs ({{ getFilteredTransportJobs().length }})
No jobs match your criteria
Try adjusting your filters or check back later for new opportunities
{{ job.crop }} Transport
{{ job.quantity }}kg β’ {{ job.urgency }} priority
{{ job.urgency === 'high' ? 'Same day' : job.urgency === 'medium' ? '1-2 days' : '3-5 days' }}
Instructions: {{ job.instructions }}
Earnings & Analytics
Track Your Transport Business
Monitor your earnings, job completion rates, and performance metrics on the PestVid platform.
Total Earnings
{{ (currentTransporter?.earnings || 0).toFixed(4) }} SOL
β ${{ ((currentTransporter?.earnings || 0) * 25).toFixed(2) }} USD
Completion Rate
{{ getCompletionRate() }}%
{{ currentTransporter?.completedJobs || 0 }} of {{ currentTransporter?.totalJobs || 0 }} jobs
This Month
{{ getMonthlyEarnings().toFixed(4) }} SOL
{{ getMonthlyJobs() }} jobs completed
Recent Payments
No payments received yet
Complete transport jobs to start earning SOL
{{ payment.crop }} Transport
{{ payment.pickupLocation }} β {{ payment.deliveryLocation }}
+{{ payment.amount }} SOL
{{ formatTimestamp(payment.paidAt, true) }}
Investment Opportunities
User: {{ currentUser ? currentUser.name : 'Investor' }} (Role: Investor)
Browse funding requests from farmers and simulate investments.
No investment opportunities found matching your criteria.
Total funding requests in database: {{ allFundingRequests.length }}
After filters applied: {{ filteredFundingRequests.length }}
{{ project.title }}
{{ project.status === 'pending' ? 'Seeking Funding' : project.status === 'funded' ? 'Fully Funded' : 'Partially Funded' }}{{ project.description }}
Recent Farmer Updates
Invest to receive {{ project.investorShare }}% of the profits, proportional to your investment. Expected return is {{ project.roi }}% over {{ project.timeline }} months.
No Projects Found
Try adjusting your filters or check back later for new investment opportunities.
Investment Portfolio
User: {{ currentUser ? currentUser.name : 'Investor' }} (Role: Investor)
View your simulated investments and transaction history.
Portfolio Overview
Your Active Investments
No Active Investments
You haven't invested in any agricultural projects yet.
Project | Farmer | Invested (SOL) | Progress | Expected Return (SOL) | Status | Details |
---|---|---|---|---|---|---|
{{ investment.projectTitle }} {{ investment.crop }} |
{{ getFarmerDisplayIdentifier(investment.farmerWallet, 10) }} |
{{ investment.amount }} {{ formatTimestamp(investment.investmentDate, true) }} |
{{ investment.progress }}% Complete |
{{ calculateExpectedReturn(investment) }} {{ investment.roi }}% ROI |
{{ investment.status.charAt(0).toUpperCase() + investment.status.slice(1) }} | View |
Platform Transaction History (Simulated)
PestiVid Platform (Simulated Ledger)No Transactions Yet
Your investment and payout transactions on the platform will appear here.
{{ userName }}
{{ userRoleDisplay }} β’ Member since {{ memberSinceDisplay }}
{{ currentUserIdentifier }}
Wallet Status
{{ walletConnected ? 'Connected' : 'Not Connected' }}
Contact Information
Email: {{ userEmailDisplay }}
Phone: {{ userPhoneDisplay }}
Platform Statistics
Videos: {{ farmerVideos.length }}
Active Listings: {{ farmerListings.filter(l=>l.status === 'active').length }}
Purchases: {{ buyerPurchases.length }}
Investments: {{ investorInvestments.length }}
Account Status
Role: {{ userRoleDisplay }}
Messages: {{ unreadMessageCount }} unread
Your Uploaded Videos ({{ farmerVideos.length }})
No videos uploaded yet
{{ video.crop }}
{{ video.location }}
{{ video.pesticide }}
CID: {{ video.cid }}
Hash: {{ video.videoFileHash ? video.videoFileHash.substring(0,16) + '...' : 'N/A' }}
Your Active Listings ({{ farmerListings.filter(l=>l.status === 'active').length }})
No active listings
Crop | Location | Pesticide Co. | Price Range (SOL) | Status |
---|---|---|---|---|
{{ listing.crop }}
CID: {{ listing.cid.substring(0,8) }}...
|
{{ listing.location }} | {{ listing.pesticideCompany || 'N/A' }} | {{ listing.minPrice }} - {{ listing.maxPrice }} | Active |
Your Funding Requests ({{ farmerFundingRequests.length }})
No funding requests created
{{ request.title }}
{{ request.crop }} β’ {{ request.acres }} acres β’ {{ request.method }}
Required
{{ request.amount }} SOL
Raised
{{ request.fundedAmount || 0 }} SOL
Timeline
{{ request.timeline }} months
Expected ROI
{{ request.roi }}%
CID: {{ request.cid }}
Created: {{ formatTimestamp(request.createdAt, false) }}
Transaction History
Sales Made ({{ farmerSales.length }})
Crop | Buyer | Amount | Date | Status |
---|---|---|---|---|
{{ sale.crop }} | {{ getFarmerDisplayIdentifier(sale.buyerWallet, 12) }} | {{ sale.price }} SOL | {{ formatTimestamp(sale.saleDate, true) }} | Completed |
Purchases Made ({{ buyerPurchases.length }})
Crop | Seller | Amount | Date | Action |
---|---|---|---|---|
{{ purchase.crop }} | {{ getFarmerDisplayIdentifier(purchase.farmerWallet, 12) }} | {{ purchase.price }} SOL | {{ formatTimestamp(purchase.purchaseDate, true) }} |
Investments Made ({{ investorInvestments.length }})
Project | Farmer | Amount | Expected Return | Status |
---|---|---|---|---|
{{ investment.projectTitle }} | {{ getFarmerDisplayIdentifier(investment.farmerWallet, 12) }} | {{ investment.amount }} SOL | {{ calculateExpectedReturn(investment) }} SOL | {{ investment.status.charAt(0).toUpperCase() + investment.status.slice(1) }} |
No transactions yet
Start {{ role === 'farmer' ? 'selling crops' : role === 'buyer' ? 'buying crops' : 'investing in projects' }} to see your transaction history
User: {{ currentUser ? currentUser.name : 'User' }} - Messaging
Chat with other users on the platform. Messages are stored locally in your browser.
Conversations
No conversations yet.
Start a chat from a user's profile or project.
Welcome to PestiVid Chat
Select a conversation from the left to view messages, or start a new chat from a user's profile or project page.
{{ activeConversationPartnerDisplayAddress || 'Chat' }}
Plant Disease Analysis
Plant Disease Detection (Potato Leaf)
Upload an image of a potato plant leaf to detect diseases and get treatment recommendations. This feature connects to an AI model.
Upload Plant Image
Selected image:
Analysis Results
Analyzing plant image...
Analysis Error
{{ analysisErrorText }}
Treatment Recommendation:
{{ parsedAnalysis.treatmentRecommended }}
Raw AI Output (for debugging if parsing failed):
{{ analysisResultText }}
Upload and analyze a plant image to see results
AgriBot - Your Farming Assistant
User: {{ currentUser ? currentUser.name : 'Farmer' }} (Role: Farmer)
Chat with AgriBot about farming questions. AI responses are powered by a live backend.
{{ selectedPurchase.crop }} - Purchase Verification
Location
{{ selectedPurchase.location }}
Pesticide Used
{{ selectedPurchase.pesticide }}
Pesticide Company
{{ selectedPurchase.pesticideCompany || 'N/A' }}
Purchase Price
{{ selectedPurchase.price }} SOL
Purchase Date
{{ formatTimestamp(selectedPurchase.purchaseDate, false) }}
Seller Identifier
{{ selectedPurchase.farmerWallet }}
Video File Hash (SHA256)
{{ selectedPurchase.videoFileHash || 'N/A' }}
Platform Verification (Simulated):
Video CID ({{selectedPurchase.videoStorageType || 'ipfs'}}): {{ selectedPurchase.cid }}
Real-time Tx: {{ selectedPurchase.txHash }}
Video evidence on {{ (selectedPurchase.videoStorageType || 'ipfs').toUpperCase() }}, linked on PestiVid platform (Simulated).
View on {{ (selectedPurchase.videoStorageType || 'ipfs').toUpperCase() }} GatewayPurchase Crop Batch
{{ selectedListing.minPrice }} - {{ selectedListing.maxPrice }} AVAX
{{ selectedInvestment.projectTitle }}
{{ selectedInvestment.description }}
Farmer Updates
{{ selectedInvestment.videoFileHash ? selectedInvestment.videoFileHash.substring(0,10) + '...' : 'N/A' }}
Farmer Profile
Farmer Identifier (PestiVid ID)
{{ selectedFarmerProfile.walletAddress ? selectedFarmerProfile.walletAddress.substring(0,10) + '...' : 'N/A' }}
Name: {{ selectedFarmerProfile.name || 'N/A' }}
Role: {{ selectedFarmerProfile.role || 'Farmer' }}
Short Bio
{{ selectedFarmerProfile.bio || 'This farmer has not provided a bio yet.' }}
PestiVid Email
{{ selectedFarmerProfile.email || 'N/A' }}
PestiVid Member Since
{{ formatTimestamp(selectedFarmerProfile.memberSince, false) }}
Platform Activity:
{{ selectedFarmerProfile.fundingRequestCount || 0 }}
Funding Requests
{{ selectedFarmerProfile.activeListingCount || 0 }}
Active Listings
{{ getFarmerVideoCount(selectedFarmerProfile.walletAddress || selectedFarmerProfile._id) }}
Videos Uploaded
{{ getFarmerTotalInvestments(selectedFarmerProfile.walletAddress || selectedFarmerProfile._id) }}
SOL Raised
(Note: Activity based on currently visible items on the platform.)
Recent Projects:
{{ loadingMessage }}
Click outside to force close if stuck