The future of payments is transparent, efficient, and accessible. Drift represents the next generation of payment infrastructure, leveraging blockchain technology to create seamless financial interactions.
Drift is a secure and extensible payment platform built on Sui blockchain, designed to empower:
- β‘ Instant transactions with minimal costs
- π° Multi-currency support (SUI, USDC) with optional tips
- πͺ Merchant-focused tools for businesses to create and manage payment requests
- π± Mobile-first experience with QR code integration
- π Advanced security including social recovery and backup addresses
- π Seamless integration capabilities for existing systems
- π Extensible architecture ready for future innovations
- Merchants create payment accounts and issue payment requests with custom descriptions and amounts
- Customers receive payment links or scan QR codes to complete transactions instantly
- Security is enhanced through social recovery options and backup addresses, eliminating single points of failure
- Transparency is built-in with all transactions recorded on the Sui blockchain
- Businesses seeking modern, cost-effective payment solutions
- Developers building payment applications and integrations
- Users who value transparent and efficient payment methods
- DeFi projects requiring composable payment infrastructure
Drift is optimized for mobile use and works seamlessly with the Nightly wallet app on mobile devices, providing a native-like experience for both merchants and customers.
Mobile-optimized interface designed for use with Nightly wallet app
- Create and manage multiple merchant payment accounts
- Secure wallet integration with Sui dApp Kit
- Account recovery and backup address functionality
- Real-time balance tracking for SUI and USDC
- Generate QR codes for payment requests
- Mobile-optimized QR code scanner
- Instant payment processing via QR scanning
- Cross-platform compatibility (iOS/Android)
- Issue payment requests with custom descriptions
- Support for USDC and SUI tokens
- Optional tip functionality
- Real-time payment status tracking
- Automatic payment expiration handling
- View pending and completed payments
- Withdraw funds to external addresses
- Delete expired payment requests
- Comprehensive transaction history
- Social recovery options to eliminate single points of failure
- Backup address configuration for account recovery
- Multi-signature support
- Secure intent-based transactions
- Dependency version management
- Dark theme optimized interface
- Responsive design for all devices
- Smooth animations and transitions
- Intuitive navigation and user flows
Drift is built using a modern tech stack optimized for blockchain applications:
- Frontend: Next.js 15 with TypeScript and Tailwind CSS
- Blockchain: Sui blockchain integration via Sui dApp Kit
- SDK: Account.tech Payment SDK for secure transaction handling
- State Management: Zustand for efficient state management
- UI Components: Radix UI primitives with custom styling
- Mobile Wallet: Optimized for Nightly app integration
- Node.js 18+
- pnpm (recommended) or npm
- A Sui wallet (Nightly app recommended for mobile, Sui Wallet for desktop)
-
Clone the repository
git clone <repository-url> cd drift-payments
-
Install dependencies
pnpm install # or npm install -
Set up environment variables
cp .env.example .env.local
Configure your environment variables as needed.
-
Run the development server
pnpm dev # or npm run dev -
Open your browser Navigate to http://localhost:3000
pnpm build
pnpm start- SUI: Native Sui token for gas fees
- USDC: Primary payment token
Drift leverages the Account.tech SDK for secure payment processing:
import { PaymentClient } from "@account.tech/payment";
// Initialize payment client
const client = await PaymentClient.init(NETWORK_TYPE, userAddress, paymentAccountId);
// Create payment request
await client.issuePayment(transaction, description, coinType, amount);
// Process payment
await client.makePayment(transaction, intentId, tipAmount);src/
βββ app/ # Next.js app router pages
β βββ merchant/ # Merchant account management
β βββ pay/ # Payment processing
β βββ withdraw/ # Withdrawal functionality
β βββ deposit/ # Deposit functionality
βββ components/ # Reusable UI components
βββ hooks/ # Custom React hooks
βββ store/ # Zustand state management
βββ utils/ # Utility functions
βββ types/ # TypeScript type definitions
βββ constants/ # App constants
pnpm dev # Start development server
pnpm build # Build for production
pnpm start # Start production server
pnpm lint # Run ESLintThis project is licensed under the MIT License - see the LICENSE file for details.
- Account.tech for the payment SDK
- Sui Foundation for the blockchain infrastructure
- Next.js for the React framework
- Tailwind CSS for styling
- Nightly for mobile wallet integration


