Get the binary
Clone the repo and build Smart Router from source.
git clone https://github.com/Magma-Devs/smart-router.git
cd smart-router
make install-allInstall the binary, point it at an RPC, send a request. Smart Router is a centralised RPC routing gateway with QoS-based provider selection, caching, hedging, retries, and cross-validation.
Full guides, API reference, configuration, and deployment runbooks for Smart Router.
Clone the repo and build Smart Router from source.
git clone https://github.com/Magma-Devs/smart-router.git
cd smart-router
make install-allGenerates a config from config/smartrouter_examples/ and starts the router on port 3360.
./scripts/pre_setups/init_smartrouter_eth.shSend a JSON-RPC call through the router to confirm it's relaying traffic.
curl -X POST http://127.0.0.1:3360 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'Smart Router's core is open source. You can read exactly what's routing and validating your traffic. No black box between your app and the chain.
github.com/Magma-Devs/smart-routerSame config shape across dev, staging, and prod. Pick the substrate that fits your stack.
Distroless image, one command to run. Best for local dev and single-host deployments.
DocsHelm chart and reference manifests. Horizontal scaling with shared block-aware cache.
DocsStatic binary, systemd unit. Pin it next to your validators or in a private VPC.
DocsThe repo ships a multi-stage Dockerfile that produces a distroless image with the smart-router binary as the entrypoint. Build it locally, then run:
docker run --rm \
-p 3360:3360 \
-p 7779:7779 \
-v "$(pwd)/config:/smart-router/config:ro" \
-v "$(pwd)/specs:/smart-router/specs:ro" \
smart-router:local \
rpcsmartrouter \
/smart-router/config/smartrouter_examples/smartrouter_eth.yml \
--geolocation 1 \
--use-static-spec /smart-router/specs/config/ and specs/ as read-only volumes.Open source
Noncommercial license
Free to read, run, and modify for evaluation, research, and personal use. Source is on GitHub: read what's routing and validating your traffic.
Production use
Commercial license
Required to run Smart Router commercially or in production. Talk to us for pricing.
Want it managed?
This quickstart covers the self-hosted Smart Router. If you'd rather not operate it yourself, talk to us.
Need a hand getting started? Join our Telegram community, reach out to our team or browse all plans.