BaseSplit

Instantly split bills. Snap your receipt, divide it between friends, and settle up crypto-natively.

BaseSplit

Created At

ETHGlobal Buenos Aires

Project Description

HashItOut is a bill-splitting platform that leverages XMTP messaging, AI-powered OCR (Ollama), and crypto-native payments for frictionless group settlements. Users can send a receipt image in any XMTP chat, where a decentralized AI agent will pick it up, parse line items and automatically generate a Miniapp link to settle up. Users connect their wallet, select the items they owe, and tap-to-pay their exact share using USDC on Base. This provides a seamless, native web3 way to settle bills with as little friction as possible.

How it's Made

HashItOut is engineered as a hybrid decentralized application, utilizing a specialized, low-latency architecture to achieve frictionless bill settlement. The application's control plane is an XMTP Agent built using the XMTP Node SDK. Its primary function is real-time message monitoring and attachment detection. We integrated Ollama for high-speed localized OCR for receipt reading. Upon receipt detection, the agent executes an API call to Ollama, which extracts and parses a JSON payload based on the receipt contents. Bill data, item claim statuses, and conversation identifiers are stored in a single, local SQLite database file. This file is intentionally shared between the Node.js Agent and the Next.js Miniapp. This approach was fast to implement and acted as the critical data bridge between the two primary components. The user interface is implemented as a Next.js app. It establishes a connection to the shared SQLite database to retrieve and render the itemized bill. Frontend wallet interaction is managed by Wagmi and viem for robust integration and specific chain configuration. All monetary transactions are processed on Base for demo purposes, but this could be expanded to other chains in future. The Miniapp facilitates direct ERC-20 transfers using USDC but once again this could be expanded further in future work on the product.

background image mobile

Join the mailing list

Get the latest news and updates