project screenshot 1
project screenshot 2
project screenshot 3

OmiSwap

OmiSwap is an innovative platform that enables voice-activated on-chain transactions through an AI wearable device, allowing users to seamlessly interact with multiple blockchain networks using natural language commands.

OmiSwap

Created At

ETHGlobal San Francisco

Winner of

Coinbase Developer Platform - Most Innovative Use of CDP SDK 2nd place

Polygon - Best AI + Onchain App on Polygon 1st place

Project Description

OmiSwap is an innovative platform that simplifies blockchain interactions through voice-activated commands using an AI wearable device. The system allows users to initiate transactions by speaking into their Omi device, recognizing trigger phrases like "start transaction" and "end transaction" to capture user intent.

The platform utilizes advanced AI, powered by OpenAI's GPT models, to interpret natural language commands. For example, a user can say "I want to send five bucks to Rohan on Polygon," and the system will translate this into structured transaction data.

OmiSwap leverages the Omi AI wearable device, which is part of a larger ecosystem integrating with smartphones and companion apps. This integration allows users to receive notifications, make transactions, and access blockchain functionalities directly from their wearable device. The seamless connection between the wearable and the user's smartphone enhances the overall utility and convenience of the OmiSwap platform.

The system supports multiple blockchain networks, including Base, Polygon, Arbitrum, and Ethereum. Users can specify the network in their voice command, enabling seamless cross-chain transactions. OmiSwap creates and manages wallets for users across different blockchain networks using the Coinbase CDP (Crypto Development Platform) SDK. This integration allows for efficient wallet provisioning, sending crypto into and out of wallets, tracking balances, and trading crypto assets.

OmiSwap supports two main types of transactions: transfers of cryptocurrencies (ETH or USDC) to other users on the platform, and currency swaps between ETH and USDC on the Base network. Notably, for USDC transfers, OmiSwap leverages Coinbase Wallet's recent update that enables instant, fee-free USDC sends. This feature eliminates the need for gas fees when sending USDC, making transactions more cost-effective for users.

In terms of backend processing, the system extracts transaction details from voice transcripts, verifies user identities, and retrieves wallet information from a Supabase database. Transactions are executed using the Coinbase SDK, and all transactions and swaps are logged in the database for record-keeping.

OmiSwap aims to provide a seamless, intuitive interface for blockchain interactions, eliminating the need for complex UIs or deep technical knowledge. The system prioritizes security by using server-side processing for sensitive operations and integrating with secure wallet providers.

The technology stack includes Next.js with shadcn/ui for the frontend, Node.js with Next.js API routes for serverless backend functions, Supabase for user data and transaction logging, Coinbase SDK for wallet management and transactions, and integration with OpenAI's GPT models for natural language processing.

The system also incorporates robust error handling to manage issues such as invalid transactions, network errors, or AI interpretation failures.

OmiSwap represents a significant advancement in making blockchain technology more accessible to a broader audience by leveraging voice commands, AI wearables, and innovative features like gasless USDC transfers to simplify complex cryptocurrency operations.

How it's Made

How it's made: OmiSwap is built using a cutting-edge tech stack that combines AI, blockchain, and wearable technology to create a seamless voice-activated crypto transaction platform. Voice Input and AI Processing: The system starts with the Omi wearable device, which captures user voice commands. Voice transcripts are sent to our backend, where we use OpenAI's GPT-4 model (via the Red Pill API) to interpret natural language commands into structured transaction intents. We implemented custom prompt engineering to extract specific transaction details like recipient, amount, currency, and network from user utterances. Backend Architecture: The core backend is built using Next.js API routes, providing a serverless architecture that scales efficiently. We use TypeScript for type safety and better code maintainability. We also created API routes for webhooks to stream transcription events from the Omi to our backend. Blockchain Integration: The heart of our blockchain interactions is the Coinbase CDP (Crypto Development Platform) SDK. This powerful tool allows us to create and manage wallets across multiple networks (Base, Polygon, Arbitrum, Ethereum), execute transfers and swaps, and check balances and transaction statuses. We've implemented support for gasless USDC transfers, leveraging Coinbase Wallet's recent feature update. Multi-chain support is baked into our system, with special emphasis on Polygon & Coinbase for their scalability and low fees. Database and User Management: Supabase serves as our primary database, storing user information, wallet data, and transaction logs. We stream data from Supabase through our backend to enable real-time frontend updates with the latest transaction data. Frontend: The user interface is built with Next.js and shadcn/ui, providing a responsive and accessible dashboard for users to view their transactions and wallet balances. Security: All sensitive operations, including wallet management and transaction signing, happen server-side to enhance security. We implement proper error handling and input validation to prevent potential exploits. Innovative Features: We've created a unique system for extracting transaction intents from natural language using custom regex patterns and AI processing. The integration with the Omi wearable device allows for a truly hands-free crypto experience, bridging the gap between wearable tech and blockchain. Challenges and Hacks: One of our biggest challenges was accurately parsing varied user inputs. We implemented a flexible system using regex and AI to handle different phrasings and potential speech-to-text errors. To optimize performance, we parallelized API calls where possible, using Promise.all for concurrent processing of multiple transactions or swaps. Partner Technologies: Coinbase CDP SDK: This was crucial for our project, providing a unified interface for multi-chain wallet management and transactions. It significantly reduced the complexity of supporting multiple networks. Polygon: We leveraged Polygon's fast and cost-effective infrastructure to provide users with an optimal experience for frequent, small-value transactions. Omi Wearable: This innovative device forms the core of our user interface, enabling voice-activated blockchain interactions in a way that's never been done before. By combining these technologies, we've created a unique platform that makes blockchain interactions as simple as speaking a command, truly bringing crypto to the masses through the power of AI and wearable tech.

background image mobile

Join the mailing list

Get the latest news and updates