A decentralized marketplace built on Algorand blockchain for campus communities to buy, sell, and trade items securely.
- Blockchain-Powered: All transactions recorded on Algorand blockchain
- Secure Wallet Integration: Uses Pera Wallet for secure authentication
- Mint & List Items: Create NFT-like marketplace items with custom pricing
- Purchase Items: Buy items with automatic ownership transfer
- Delete Items: Remove your own listings from the marketplace
- Persistent Storage: Items persist across page reloads via blockchain state
Choose one of these Algorand-compatible wallets:
Option A: Pera Wallet (Recommended)
- Chrome/Edge: Pera Wallet Extension
- Firefox: Pera Wallet Add-on
- Mobile: iOS App Store | Google Play
Option B: Defly Wallet
- Chrome: Defly Extension
- Mobile: iOS App Store | Google Play
Option C: MyAlgo Wallet (Web-based)
- Visit: wallet.myalgo.com
- No installation required - works in browser
Note: All these wallets work with the CampusChain marketplace. Choose whichever you prefer!
- Open Pera Wallet
- Create a new account or import existing
- Switch to TestNet:
- Open Settings → Developer Settings
- Enable "TestNet Mode"
- Switch network to "TestNet"
Get free TestNet Algos from the dispenser:
- Copy your wallet address from Pera Wallet
- Visit: https://bank.testnet.algorand.network/
- Paste your address and request funds
- Wait ~5 seconds for confirmation
# Install AlgoKit (if not already installed)
pip install algokit
# Start local development network
algokit localnet start
# Check status
algokit localnet statusCan't install Pera Wallet? Use Developer Mode for testing:
- Run your
deploy.pyscript - it generates a test account with mnemonic - Copy the 25-word mnemonic from the output
- Open http://localhost:8000
- Click "🔧 Developer Mode (Testing Only)" to expand
- Paste your mnemonic
- Test all marketplace functions!
cd frontend
python -m http.server 8000Navigate to: http://localhost:8000
- Click "🔗 Connect Wallet" button in the header
- Approve the connection in Pera Wallet popup
- Your wallet address will appear in the header
List an Item:
- Enter item name/details (e.g., "Calculus Textbook")
- Enter price in microAlgos (e.g., 1000000 = 1 Algo)
- Click "Mint & List Block"
- Approve transaction in Pera Wallet
Buy an Item:
- Copy the Application ID from a listed block
- Paste it in the "Buy Item" section
- Click "Purchase Item"
- Approve the grouped transaction in Pera Wallet
Delete an Item (Owner Only):
- Enter the Application ID of your item
- Click "Delete Block"
- Approve transaction in Pera Wallet
CampusChain/
├── frontend/
│ ├── index.html # Main marketplace UI
│ ├── style.css # Styling
│ └── algosdk.min.js # Algorand SDK
├── contracts/
│ ├── marketplace_approval.teal # Smart contract logic
│ ├── marketplace_clear.teal # Clear state program
│ └── deploy.py # Deployment script
└── README.md
- Never share your mnemonic/seed phrase with anyone
- Use TestNet for development - Never use MainNet for testing
- Pera Wallet keeps your keys secure - Private keys never leave your wallet
- Always verify transactions before approving in Pera Wallet
"Please connect your Pera Wallet first!"
- Click the "Connect Wallet" button in the header
- Make sure Pera Wallet extension is installed and unlocked
"Connection Failed"
- Refresh the page and try connecting again
- Check that Pera Wallet is on the correct network (TestNet/LocalNet)
"Transaction Failed"
- Ensure you have enough Algos in your account
- Check that you're connected to the correct network
- Verify the Application ID is correct
Blocks don't appear after refresh
- Blocks are loaded from localStorage and blockchain
- Clear browser cache if experiencing issues
- Click the "🔄 Refresh" button to reload from blockchain
MIT License - Feel free to use for educational purposes