Skip to Content

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.

routeWhere the transaction goesPlans
all (default)SWQoS lanes and, when your plan includes bundles, also as a bundle, in parallelAll
swqosSWQoS lanes only. No bundle copy, so it does not count against your bundles per secondAll
bundleOnly as a bundle, with revert protection: a transaction that would fail never lands and pays nothingBase, Plus, Pro
POST /api/v1/sendTransaction?route=bundle POST /api/v1/sendRawTransaction?route=swqos

Revert 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. On route=all the 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

SituationsendTransaction (JSON-RPC)sendRawTransaction (HTTP)
route is not all, swqos, bundle400, code -32602400
route=bundle on a plan without bundles403, code -32003403
route=bundle over your bundles/s429, code -32005429

QUIC

QUIC streams carry only transaction bytes, so the route is chosen per connection with the ALPN. See QUIC: routing.

Last updated on