A secure and modern Stellar wallet built with Next.js, featuring passkey authentication and comprehensive DeFi capabilities.
TrustBridge Wallet is a web-based cryptocurrency wallet designed for the Stellar network. It provides users with a secure, intuitive interface to manage their digital assets, perform transactions, and access decentralized finance (DeFi) features. The wallet emphasizes security through modern authentication methods including passkey support and traditional secret key management.
- Multi-Authentication Support: Connect using passkeys, create new wallets, or import existing ones
- Asset Management: View and manage multiple Stellar assets including XLM and custom tokens
- Balance Tracking: Real-time balance updates with auto-refresh capabilities
- Transaction History: Complete transaction tracking and history
- Send Payments: Send XLM and other Stellar assets to any address
- Receive Funds: Generate QR codes for easy payment reception
- Asset Swapping: Built-in swap functionality for XLM to USDC and other assets
- Testnet Support: Full testnet integration with friendbot funding
- Staking Options: Access to staking opportunities through integrated platforms
- Liquidity Provision: Participate in liquidity pools
- Market Data: Real-time price information and market spreads
- External DeFi Access: Direct links to popular DeFi platforms like Aquarius
- Passkey Authentication: Modern biometric authentication support
- Secure Key Management: Local storage of encrypted wallet credentials
- Network Security: Secure communication with Stellar network
- Testnet Environment: Safe testing environment for development
- Next.js 15.5.4: React framework with App Router
- React 19.1.0: Latest React version
- TypeScript: Type-safe development
- Tailwind CSS: Utility-first CSS framework
- Radix UI: Accessible component library
- Stellar SDK: Official Stellar JavaScript SDK
- Freighter API: Browser wallet integration
- Blend Capital SDK: DeFi protocol integration
- Defindex SDK: Additional DeFi capabilities
- Zustand: Lightweight state management
- TanStack Query: Data fetching and caching
- Framer Motion: Animation library
- Sonner: Toast notifications
- QR Code Libraries: QR code generation and scanning
- Node.js 18+
- npm, yarn, pnpm, or bun package manager
-
Clone the repository
git clone https://github.com/TrustBridge/Trustbridge-wallet.git cd Trustbridge-wallet -
Navigate to frontend directory
cd frontend -
Install dependencies
npm install # or yarn install # or pnpm install # or bun install
-
Start development server
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open in browser Navigate to http://localhost:3000
-
Connect Your Wallet
- Use passkey authentication for secure biometric login
- Create a new wallet with password protection
- Import an existing wallet using your secret key
-
Fund Your Account (Testnet)
- Click "Get Test Funds" to receive testnet XLM
- Use the friendbot integration for instant funding
-
Manage Assets
- View your asset portfolio on the dashboard
- Track balances in real-time
- Monitor multiple Stellar assets
-
Perform Transactions
- Send payments to other Stellar addresses
- Generate QR codes for receiving payments
- Swap between different assets
- View transaction history
-
Access DeFi Features
- Explore staking opportunities
- Participate in liquidity pools
- Access external DeFi platforms
The wallet interface includes:
- Dashboard: Overview of assets and balances
- Assets: Detailed asset management
- Send/Receive: Transaction functionality
- Swap: Asset exchange features
- History: Transaction records
- Staking: DeFi staking options
- Liquidity: Liquidity pool participation
npm run dev: Start development server with Turbopacknpm run build: Build production applicationnpm run start: Start production servernpm run lint: Run ESLint for code quality
frontend/
├── src/
│ ├── app/ # Next.js app router pages
│ ├── components/ # Reusable UI components
│ ├── contexts/ # React contexts
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Utility libraries
│ ├── services/ # External service integrations
│ └── stores/ # Zustand state stores
├── public/ # Static assets
└── package.json # Dependencies and scripts
- WalletConnect: Authentication and wallet connection
- WalletDashboard: Main dashboard interface
- PasskeyModal: Passkey authentication flow
- Transaction Modals: Send, receive, and swap interfaces
- Asset Management: Token listing and management
We welcome contributions to TrustBridge Wallet. Please refer to our contributing guidelines:
TrustBridge Wallet prioritizes security:
- All sensitive operations are performed client-side
- Private keys never leave your device
- Secure communication with Stellar network
- Regular security audits and updates
This project is licensed under the MIT License. See the LICENSE file for details.
For support and questions:
- Check the documentation in the
/docsfolder - Review existing GitHub issues
- Create a new issue for bug reports or feature requests
Future development includes:
- Additional DeFi protocol integrations
- Mobile application development
- Enhanced security features
- Multi-network support
- Advanced trading features
Note: This wallet is currently configured for Stellar testnet. Always verify network settings before performing transactions with real assets.