Our app solves the problem of onboarding new people into web3 / crypto. Simply by calling a number a wallet is already created for them, after a simple onramp using Fiat they can get started. Using a swarm of AI agents they can call this number anytime and do a theoretical infinite amount of things, from buying USDC with ETH and staking to deploying a smart contract or buying some NFTs.
The initial flow is a user calls us and gets set up with an embedded wallet, afterwards they can call anytime to any function using their voice.
Crypto Assets Page Overview
This page provides a comprehensive interface for users to manage their cryptocurrency assets. Let's break down the key components and functionality:
Core Functionality
- Authentication Integration: Uses Privy integrated with Coinbase Smart Wallets for wallet authentication and management
- Wallet Address Detection: Automatically detects the user's wallet address from either their smart wallet or linked accounts
- Wallet Funding: Allows users to fund their wallet with either USDC or ETH (native currency) using Coinbase onramp
- Portfolio Overview: Displays total portfolio value, 24-hour change, and number of assets
- Asset Listing: Shows detailed information about each cryptocurrency in the portfolio
- Wallet Information: Displays the user's wallet address
The implementation follows a clean, component-based architecture with clear separation of concerns between UI rendering, data fetching, and state management.
APIs and Services Integrated in the Crypto Assets Page
The Crypto Assets page integrates several key APIs and services to provide a comprehensive cryptocurrency management experience:
1. Privy Authentication & Wallet Management using Coinbase Smart Wallet
- @privy-io/react-auth: Provides authentication and wallet management functionality
- Handles smart wallet and linked wallet account detection
2. Privy Wallet Funding using Coinbase Onramp
- useFundWallet: Custom hook that wraps Privy's wallet funding functionality which uses Coinbase onramp in the backend
- Enables users to fund their wallets with USDC or ETH (native currency)
- Handles the funding transaction flow and provides status updates
3. Base Chain Integration
- The funding functionality is configured to work with Base Chain (chain ID 8453)
- This is a Layer 2 Ethereum scaling solution that provides lower fees and faster transactions
OpenAI Orchestration Layer
- Controlos a plethera of other agents
- Ora Search agent
- CDP-wallet holding agents
- CDP Agentkit
The ability to call a phone number which is your personal crypto assistant is not seen before and with the power of Coinbases agentkit the possibilities are truly endless for onchain transactions.