Transforming CSV Data into Verifiable Digital Assets on Hedera
CSVToChain is the first CSV-to-NFT tokenization platform built on Hedera Hashgraph, solving the fundamental problem of data authenticity and ownership in the digital age. The platform transforms ordinary CSV files into verifiable, tradeable blockchain assets with immutable proof of integrity, NFT-based ownership with clear provenance, and a built-in marketplace for monetizing datasets. Users can upload CSV files, validate data quality, mint NFTs representing their datasets, browse a decentralized marketplace, and purchase tokenized data using their Hedera walletsβall in under 60 seconds with military-grade cryptographic verification.
Demo Video link: https://youtu.be/h3_Vm9uZ-4o
DeFi & Tokenization
Frontend:
- Next.js 16 (React 19, TypeScript 5)
- Tailwind CSS 4 (responsive design)
- Lucide React (icons)
- React Hot Toast (notifications)
Blockchain:
- Hedera SDK 2.76.0 (HTS, HCS, crypto operations)
- Hedera Mirror Node API (account lookups, transaction verification)
- HashPack Wallet (Hedera native wallet)
- MetaMask (Web3 wallet compatibility)
Backend & Services:
- Next.js API Routes (purchase processing, data endpoints)
- Browser localStorage (persistent storage)
- CoinGecko API (real-time HBAR pricing)
- SHA-256 cryptographic hashing
Infrastructure & DevOps:
- Vercel (deployment ready)
- Docker support (containerization)
- pnpm (package management)
- ESLint & Prettier (code quality)
CSV Upload β Validation β Hashing β NFT Minting β HCS Verification β Marketplace Listing
- Drag & Drop Upload: Modern file interface with real-time progress tracking
- Smart Validation: Multi-layer checks (size, structure, quality scoring)
- Cryptographic Hashing: SHA-256 for immutable data integrity proof
- Real NFT Minting: Live Hedera Token Service integration
- Automatic Marketplace Sync: Tokenized datasets appear instantly in the data marketplace
- Browse Datasets: Advanced search and filtering by category
- Purchase Functionality: One-click purchasing with wallet verification
- Price Discovery: Dynamic pricing with HBAR conversion
- Transaction Verification: HashScan integration for blockchain proof
- Purchase History: Track all acquired datasets with metadata
- HashPack Support: Native Hedera wallet integration
- MetaMask Compatibility: Popular Web3 wallet support
- Multi-wallet Switching: Seamless account selection
- Live Balance Display: Real-time HBAR balance from Mirror Node
- Transaction Signing: Secure, user-controlled transactions
- Account Explorer: Deep dive into Hedera accounts
- Multi-Network Support: Mainnet, Testnet, Previewnet
- Real-Time Data: Live transaction history and balances
- AI Categorization: Automated transaction classification
- CSV Export: Download transaction data for analysis
- Hedera Token Service (HTS): NFT represents ownership
- Hedera Consensus Service (HCS): Immutable timestamp + hash
- Military-Grade Security: Double verification architecture
- Node.js v20+
- pnpm v9+ (or npm/yarn)
- Hedera testnet account: portal.hedera.com
- Clone Repository
git clone https://github.com/mwihoti/csvtochain.git
cd csvtochain- Install Dependencies
pnpm install- Configure Environment
cp .env.local.example .env.localEdit .env.local:
HEDERA_ACCOUNT_ID=0.0.YOUR_ACCOUNT_ID
HEDERA_PRIVATE_KEY=YOUR_PRIVATE_KEY
HEDERA_NETWORK=testnet
NEXT_PUBLIC_TREASURY_ACCOUNT=0.0.YOUR_ACCOUNT_ID
HCS_TOPIC_ID=0.0.YOUR_TOPIC_ID (optional)
NEXT_PUBLIC_HEDERA_NETWORK=testnet- Test Connection
pnpm test:connection- Start Development Server
pnpm devAccess the app at http://localhost:3000
- Navigate to http://localhost:3000/tokenized-data
- Upload
public/examples/sample-sales.csv - Verify validation passes with:
- β 15 rows, 7 columns
- β Quality score shown
- β Data preview displayed
- β SHA-256 hash generated
- Complete Test 1
- Click "Mint Dataset NFT on Hedera"
- Approve transaction in wallet
- Verify success message shows:
- Token ID
- Serial Number
- HashScan verification link
- After minting, navigate to http://localhost:3000/data-marketplace
- Verify your tokenized CSV appears in listings
- Click "View Details" to see metadata
- (Optional) Click "Purchase" to test purchase flow
- Connect wallet via button on homepage
- Verify account ID and balance display
- Switch between HashPack and MetaMask (if available)
- Verify balance updates correctly
- Navigate to http://localhost:3000/dashboard
- Search for a known account ID
- Verify transaction history loads
- Check dark mode functionality
csvtochain/
βββ app/
β βββ api/
β β βββ mint-dataset/ # NFT minting endpoint
β β βββ purchase-data/ # Marketplace purchase processing
β βββ dashboard/ # Transaction analytics
β βββ data-marketplace/ # Browse & purchase datasets
β βββ my-purchases/ # Purchase history
β βββ seller-dashboard/ # Listing management
β βββ token-gallery/ # Minted NFTs gallery
β βββ tokenized-data/ # CSV upload & minting
β βββ layout.tsx # Root layout
β βββ page.tsx # Homepage
βββ components/
β βββ CSVTokenizer.tsx # Upload & minting UI
β βββ DashboardOverview.tsx # Analytics dashboard
β βββ PurchaseModal.tsx # Marketplace purchase modal
β βββ TransactionTable.tsx # Transaction display
β βββ [other components]
βββ lib/
β βββ services/
β β βββ csv-processor.ts # CSV validation & hashing
β β βββ hedera-sdk.ts # Hedera interactions
β β βββ marketplace.ts # Listing & purchase logic
β β βββ token-minting.ts # NFT minting service
β β βββ categorization.ts # Transaction categorization
β βββ contexts/
β β βββ WalletContext.tsx # Wallet state management
β βββ api/
β βββ mirror-node.ts # Hedera Mirror Node queries
βββ public/
β βββ examples/
β βββ sample-sales.csv # Test dataset
β βββ sample-analytics.csv # Test dataset
βββ contracts/
β βββ DatasetRegistry.sol # Smart contract for registry
βββ package.json
- Environment Variables: Never commit
.env.localto git - Private Keys: Use secure vaults in production
- Testnet Only: Development uses testnet for safety
- Data Privacy: Only SHA-256 hash stored on-chain, full dataset stays off-chain
- GDPR Compliant: No PII stored in blockchain metadata
- Tokenization Time: < 60 seconds (upload to NFT minted)
- Validation Time: < 5 seconds
- Hash Generation: < 1 second
- API Response Time: < 500ms
- Dashboard Load: < 2 seconds
- Marketplace Sync: < 1 second
- Batch CSV upload & tokenization
- Fractional dataset ownership (ERC-1155)
- Advanced search with AI/ML filtering
- Royalty system for creators
- Built-in payment streaming (HTS token distribution)
- Dataset subscription models
- Creator rewards program
- Governance token (DAO)
- White-label marketplace
- Compliance & audit trails
- Data insurance
- Integration APIs
- Enterprise wallet support
- Hedera's consensus architecture enables 99.9% reliability
- Privacy-first design (only hash on-chain) is crucial for adoption
- User experience matters more than technical complexity
- Real-time analytics drive user engagement
- Marketplace liquidity requires clear pricing mechanisms
MIT License - See LICENSE file for details
Contributions welcome! Please follow the existing code style and submit pull requests to the main branch.
For issues or questions:
- Create a GitHub issue
- Check existing documentation
- Review test files for usage examples
[Demo video will be embedded in pitch deck]
CSVToChain: Where Data Meets Blockchain