Characters1,042
Words158
~Tokens261
Size1.0 KB
Build a Solana token burn tool with a clean “Burn” style UI.
Requirements:
- Connect wallet using Solana Wallet Adapter.
- Let users select an SPL token from their wallet.
- Show token name, mint address, balance, decimals, and token account.
- Allow user to enter amount to burn.
- Validate balance, decimals, and token account ownership.
- Create and send a burn transaction using @solana/spl-token.
- Show transaction status: preparing, awaiting wallet approval, confirmed, failed.
- Display Solscan link after confirmation.
- Add clear warnings that burning is permanent and irreversible.
- Require a confirmation checkbox before enabling the burn button.
- Use Next.js, TypeScript, Tailwind CSS, and shadcn/ui.
- Use mainnet/devnet toggle.
- Do not store private keys or seed phrases.
- Keep code modular: wallet setup, token fetching, burn logic, UI components.
Design:
- Dark futuristic Solana-inspired interface.
- Large token burn card in the center.
- Purple/green gradient accents.
- Minimal, professional, secure-feeling layout.
