Routing
Choose where each transaction is sent
Add the route query parameter to sendTransaction or sendRawTransaction to choose where Bolt sends the transaction. Without it, nothing changes: the transaction is sent everywhere, as before.
route | Where the transaction goes | Plans |
|---|---|---|
all (default) | SWQoS lanes and, when your plan includes bundles, also as a bundle, in parallel | All |
swqos | SWQoS lanes only. No bundle copy, so it does not count against your bundles per second | All |
bundle | Only as a bundle, with revert protection: a transaction that would fail never lands and pays nothing | Base, Plus, Pro |
POST /api/v1/sendTransaction?route=bundle
POST /api/v1/sendRawTransaction?route=swqosRevert protection
A transaction sent through SWQoS that fails on-chain still lands as a failed transaction: it pays the base fee and its priority fee. With route=bundle the transaction is sent only as a bundle, and a bundle lands whole or not at all: if your transaction would fail, nothing lands, and you pay no fee, no priority fee and no tip.
This suits transactions you only want to land when they succeed, such as arbitrage that checks its own profit.
The trade-off: a bundle can only land in the slots of leaders that take bundles, and it competes on its tip. A transaction that must land as fast as possible, success or not, is better on all.
Rules for route=bundle
- Plan: bundles are included in Base, Plus and Pro. On Free the request is refused with
403. - Bundles per second: each transaction counts against your plan’s bundles per second (Base 5, Plus 15, Pro 25). Over the limit the request is refused with
429, since the bundle is the transaction’s only path. Onroute=allthe bundle copy is simply skipped over the limit and the transaction still goes through SWQoS. - Tip and TPS: the same as any transaction: the tip must reach your plan’s minimum, and the transaction counts against your TPS.
To send several transactions that must land together, use sendBundle.
Errors
| Situation | sendTransaction (JSON-RPC) | sendRawTransaction (HTTP) |
|---|---|---|
route is not all, swqos, bundle | 400, code -32602 | 400 |
route=bundle on a plan without bundles | 403, code -32003 | 403 |
route=bundle over your bundles/s | 429, code -32005 | 429 |
QUIC
QUIC streams carry only transaction bytes, so the route is chosen per connection with the ALPN. See QUIC: routing.