A modern, AI-powered wallet interface for Solana that allows users to interact with their crypto assets using natural language. Built with Next.js, Tailwind CSS, and integrated with GPT for an intuitive user experience.
🔗 Live Demo: https://solana-gpt-wallet.vercel.app/
⚡ Please be mindful of GPT API usage if testing the live demo.
This project was inspired by @thearyanag's ideas and this discussion about Solana Agent Kit. The goal is to create a more intuitive way to interact with Solana wallets using natural language.
- Currently using GPT-4o-mini for processing natural language commands (feel free to experiment with different models)
- Using default Solana wallet provider for transaction signing
- Future possibilities (not yet implemented):
- Using Privy for auto-signing transactions
- Generating unique wallets for each user mapped to their EOA
- Automated features:
- Integrated 2 SOL airdrop for testing
- Real-time balance updates
- Transaction history tracking
- Swap Functionality: Currently, the swap feature is not fully functional due to Jupiter API limitations on Devnet. Contributions to fix this are welcome!
- Running on Devnet for testing purposes.
- Current model (GPT-4o-mini) limitations - feel free to experiment with other models like GPT-o1 or Claude 3.5 Sonnet.
- Natural Language Interactions - Send tokens, check balances, and perform actions using simple text commands
- Token Management - View SOL and USDC balances in real-time
- Transaction History - Track your recent transactions with detailed status updates
- AI-Powered Interface - Interact with your wallet using natural language
- Automated Test SOL - One-click 2 SOL airdrop for testing
- Secure Architecture - Built with security best practices and proper error handling
- Mobile Responsive - Fully functional on both desktop and mobile devices
- Clone the repository
git clone https://github.com/pegasus1134/solana-gpt-wallet.git
cd solana-gpt-wallet
- Install dependencies
npm install
- Set up environment variables
Create a
.env.local
file in the root directory:
NEXT_PUBLIC_OPENAI_API_KEY=your_api_key_here
- Run the development server
npm run dev
Feel free to experiment with:
- Different GPT models (currently using GPT-4o-mini)
- Custom system prompts for better interactions
- Alternative wallet providers
- Additional token support
- Frontend: Next.js, React, TypeScript
- Styling: Tailwind CSS, Shadcn UI
- Blockchain: Solana Web3.js
- AI Integration: OpenAI GPT-4o-mini
- State Management: Zustand
Contributions are welcome! Particularly interested in:
- Fixing the swap functionality
- Implementing Privy integration
- Adding support for more tokens
- Improving error handling
- Enhancing the UI/UX
To contribute:
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request
MIT License - feel free to use this project for your own purposes
- @thearyanag for the original idea and inspiration
- Solana Agent Kit
- Solana and OpenAI teams for their amazing tools
Made by pegasus1134 | neuralway.ai