Dynamic Transaction Routing
Magicblock’s Magic Router is an dynamic transaction routing engine that accelerates transactions by intelligently deciding where they should be executed — either on Ephemeral Rollups or Solana — based on transaction metadata. This eliminates the need for manual routing logic from the developer, providing significant benefits in transaction speed and development experience.- ✅ Simple Integration with Single Endpoint: Just connect to a single RPC endpoint.
- ✅ Seamless Wallet Experience: Connect, sign, and submit — no need to know what’s happening behind the scenes.
- ✅ Faster Confirmations: Magic Router routes to the fastest available endpoint.

Quick Access
Anchor
Integrate with an Anchor program
Native Rust
Integrate with a Native Rust program
API
Experiment with Magic Router API
Code Snippets
Initialize connection with Magic Router before you send transaction dynamically.These public RPC endpoints are currently free and supported for development:
Magic Router Devnet: https://devnet-router.magicblock.app
Magic Router Devnet: https://devnet-router.magicblock.app
ephemeral-rollups-kitpowered with@solana/kitephemeral-rollups-sdkpowered with@solana/web.js

- Client - Transaction Submission The dApp or user sends a transaction to the Magic Router RPC endpoint.
- RPC - Metadata Inspection The Magic Router inspects the transaction metadata and checks the owner of writable accounts.
-
Validator - Smart Routing and Execution
Based on the metadata, the router determines whether to send it to:
- Ephemeral Rollup for fast, low-latency, zero-cost execution
- Solana for persistent, high-throughput execution

