A decentralized, retro-style IRC (Internet Relay Chat) client built entirely on Monad testnet
MonadIRC is a decentralized, blockchain-powered chat platform that leverages Smart Accounts, ERC-4337 account abstraction, and HyperIndex for real-time event indexing. Users can create channels and send messages without directly paying gas, thanks to Smart Wallets integrated with bundlers and paymasters. The platform ensures secure, verifiable messaging while maintaining privacy: pending messages are only visible to the sender until they are confirmed on-chain, and all on-chain events are reliably synced to a database for instant access and indexing. MonadIRC demonstrates a seamless integration of blockchain infrastructure into real-time chat applications.
During the hackathon, I implemented the full on-chain messaging flow: 1. Smart Account creation and management using MetaMask Delegation Toolkit. 2. Gasless channel creation and message sending via bundlers and paymasters. 3. HyperIndex integration to index on-chain events and update the database with real-time channel and message data. 4. Message visibility logic: messages remain in pending state until confirmed on-chain, ensuring only the sender sees unconfirmed messages. 5. Pagination for chat history: latest 50 messages are loaded first, with older messages fetched on scroll. 6. User-friendly display of senders’ names: username is shown if available, otherwise wallet address is truncated for readability. These features collectively demonstrate a working decentralized chat application with gasless transactions and real-time blockchain indexing.
Self-funded