It's demo application for trading perpetual (PERPs) on the Drift Protocol. This application allows you to connect your Solana wallet, manage subaccounts, and trade SOL-PERP.
- Solana wallet integration
- Subaccount management
- Deposit and withdrawal of SOL
- SOL PERP trading widget
- Bun (v1.0.0 or later)
- Node.js (v19.0.0 or later)
- Solana wallet (e.g., Phantom, Solflare)
- Helius RPC URL (for connecting to the Solana network)
- Clone the repository:
git clone https://github.com/neel-ds/drift.git
cd drift- Install dependencies using Bun:
bun install- Create a
.envfile in the root directory and add your Helius RPC URL:
cp .env.example .env
# Add you RPC URL- Start the development server:
bun run devThe application will be available at http://localhost:3000
- Next.js v15
- React v19
- TypeScript
- Tailwind CSS v4
- Drift Protocol SDK
- Solana Web3.js
- TanStack Query
- Shadcn UI
- Currently supports only SOL-PERP trading
- Limited to SOL deposits and withdrawals