Overview
The MagicBlock Router API is a JSON-RPC API that implements almost all standard Solana RPC methods and adds router-specific methods. It simplifies multi-node setups by handling node selection and routing behind a single endpoint. It can be used to retrieve delegation status for accounts and identify the closest node for request execution. For example,getBlockhashForAccounts returns a blockhash from the appropriate node based on the provided accounts and their delegation status.
Mainnet URL: https://router.magicblock.app
Devnet URL: https://devnet-router.magicblock.app
API Version: 2.0
Main Operations
Network Information
- Get Routes - Query available routing information
- Get Identity - Retrieve identity information
Account Operations
- Get Account Info - Fetch account information
- Get Blockhash For Accounts - Get blockhash for specific accounts
Status & Delegation
- Get Signature Statuses - Check transaction signature statuses
- Get Delegation Status - Query delegation information
Key Features
- Solana RPC Coverage - Implements almost all standard Solana RPC methods through the router
- Router-Specific Methods - Adds methods such as
getBlockhashForAccountsandgetDelegationStatus - Simplified Multi-Node Setup - Use one router endpoint instead of manually managing multiple node endpoints
- Fast Route Query - Efficiently determine routing paths for transactions
- Account State - Access current account information and balances
- Transaction Tracking - Monitor transaction status and confirmation
- Delegation Queries - Check delegation relationships through the router
Use Cases
- Retrieve account balances and state
- Check transaction confirmation status
- Query route information for transaction routing
- Verify delegation configurations
- Avoid manual multi-node endpoint management

