A Solana transaction simulator built with Next.js that allows you to preview and analyze the effects of transactions before execution.
- 🔍 Transaction Simulation - Simulate Solana transactions without executing them
- 💰 Balance Change Preview - See token balance changes for wallets involved
- 🎨 Token Visualization - Visual display of tokens with logos and metadata
- 📊 Buy/Sell Analysis - Clear categorization of token acquisitions and disposals
- 🛡️ Error Handling - Comprehensive error reporting for failed simulations
- Framework: Next.js 15.4.6 with TypeScript
- Blockchain: Solana Web3.js & SPL Token
- UI: Tailwind CSS, Radix UI components
- Icons: Lucide React
- Package Manager: Bun
-
Clone the repository
git clone https://github.com/shivaji43/transaction-simulator.git cd transaction-simulator -
Install dependencies
bun install
-
Set up environment variables
cp .env.local.example .env.local # Add your RPC_URL -
Run the development server
bun dev
-
Open http://localhost:3000 in your browser
- Paste your serialized Solana transaction into the text area
- Click "Simulate Transaction" to preview the effects
- Review the balance changes for all affected wallets
- Analyze token acquisitions (buying) and disposals (selling)
POST /api/simulate- Simulate a serialized transaction
Contributions are welcome! Please feel free to submit a Pull Request.
MIT