
LST Solana Demo
PersonalStake SOL, get lSOL. Simple liquid staking with instant redemption.
Next.jsTurborepoExpress jsTypeScriptTanstack QueryHelius WebhookTailwindCSSShadcnSolana Web3.jsSolana SPL Tokenbs58
π LST Solana Demo - Liquid Staking Solution#
LST Solana Demo is a seamless liquid staking platform that displays SOL and liquid staking tokens (lSOL) balances. This platform demonstrates how a staking process could work while allowing users to maintain liquidity through tokenized staking positions.
π₯ Demo#
β¨ Features#
π§ Liquid Staking Demonstration | π Instant Redemption Simulation | π Secure Architecture |
---|---|---|
Visualize how SOL staking creates lSOL tokens that represent staked positions | See how redemption works without waiting for unbonding periods | Built on Solana's secure infrastructure with robust transaction handling |
π Real-time Analytics | π Blockchain Integration | π± User-Friendly Interface |
---|---|---|
Track platform wallet balances, token circulation, and total value in real-time | Fully integrated with Solana blockchain for transparent operations | Intuitive UI designed for both beginners and experienced users |
π Project Note#
This is a demo project built on Solana's Devnet to showcase a simple Liquid Staking Token (LST) platform. The platform allows you to stake your SOL and receive lSOL tokens in return at a 1:1 ratio. Behind the scenes, I'm using Helius webhooks to track transfers, with a backend that handles the transfer of SOL and tokens from my wallet.
π Tech Stack#
Frontend | Backend | Blockchain Integration |
---|---|---|
Next.js with TypeScript π | Express.js API for webhook processing π | Solana Web3.js for blockchain interactions π |
TailwindCSS + Shadcn UI π¨ | Turborepo for monorepo management βοΈ | Solana SPL Token for token operations π° |
Tanstack Query for data fetching π | Helius Webhook for real-time blockchain events π | bs58 for encoding/decoding π |
π How It Works#
For Users:#
- View Platform Details: See the platform wallet address and lSOL token mint address
- View Balances: Instantly see the platform's SOL balance and lSOL token circulation
- Simulated Staking: Visualize how sending SOL to the platform wallet would receive lSOL tokens
- Monitor Performance: Track the platform's token values in real-time
- Simulated Redemption: Understand how returning lSOL to the platform would receive SOL back
Technical Flow:#
- Platform displays wallet address and token mint information for demonstration
- Helius webhooks detect SOL transfer transactions to the platform wallet in real-time
- Express backend validates incoming transactions and processes the request
- Backend mints equivalent lSOL tokens based on current exchange rate
- For redemption simulation, Helius detects incoming lSOL tokens
- Backend burns the lSOL and returns SOL (plus rewards) to the sender's wallet
πΈ Platform Screenshots#

π Benefits of Liquid Staking#
- Maintain Liquidity: Use lSOL in DeFi protocols while earning staking rewards
- No Lockup Period: Avoid traditional staking lockup periods with instant redemption
- Compound Returns: Benefit from staking rewards and potential lSOL appreciation
- Simplified Staking: No need to manage validators or worry about slashing risks
- Transparent Operations: All transactions are recorded on-chain for verification
π§ Backend Architecture#
The platform runs on a robust Express.js backend that:
- Processes Helius Webhooks: Listens for on-chain events like token transfers and SOL movements
- Validates Transactions: Ensures all incoming transactions meet security requirements
- Automates Token Operations: Handles minting of lSOL when SOL is received and burning when lSOL is returned
- Maintains Exchange Rate: Calculates and updates the SOL/lSOL exchange rate based on staking rewards
- Provides Real-time Data: Exposes API endpoints for frontend to display current wallet balances and token information