Router
What is the Router?
MagicSwap’s Router is a Solana-based swap aggregator designed for speed, reliability, and seamless integration into wallets, bots, and dApps. It connects to major DEXs and liquidity sources to return the most efficient trading routes in real time.
Unlike standard RPC endpoints, the Router handles quote building, fee logic, and transaction assembly — making it ideal for applications that need on-chain swap execution with minimal overhead.
key benefits
Aggregates quotes from multiple liquidity providers
Supports fast, low-latency routing decisions
Builds ready-to-send swap transactions
Optimized for bot latency and production-scale dApps
Authentication
All Router requests must be authenticated using an API key.
You must include your API key in the x-api-key request header:
x-api-key: 'yourapikey'
API keys can be created and managed in the Dashboard > API Keys section.
base url
The Router’s base URL is provided in your dashboard and should be used to prefix all endpoint routes:
https\://{region}.router.magicswap.pro/api
Use this across both staging and production environments. The system automatically routes requests through the correct region.
Monitoring
coming soon.
Updated 3 months ago
