bundleOnly, we send it
only inside bundles, with our transaction behind it.
- Revert protection, in the normal case. A bundle lands whole or not at all, so a transaction that would fail is normally never included: you pay no network fee for it, and no tip.
- Never a plain copy. It is not sent to RPC nodes or straight to the leaders, on any path.
Setting it
We can make
bundleOnly the default for your key: ask us. A value your request states wins over your key’s default
(passing false overrides a key default of true; leaving the field out uses your key’s default — including on
WebSocket binary frames — or false when sending keyless).
On every path that takes the flag in a query string (/v1/tx, /v1/transactions and /api/v1/transactions), both
bundle-only and bundleOnly are accepted as aliases. In JSON, bundleOnly must be a boolean (true or false);
in a query string, bundle-only or bundleOnly must be true or false verbatim. Any other value, a repeated
parameter, or conflicting values between bundle-only, bundleOnly and the JSON body or params are refused with
bad_request (HTTP 400, JSON-RPC -32602).
When it is refused
AbundleOnly send is refused rather than accepted with nowhere to go:
unavailable(HTTP 503, JSON-RPC-32005): no path at all is open right now (for instance while starting or when every path is switched off).bundle_unavailable(HTTP 503, JSON-RPC-32005): no bundle can carry it now. That happens when our bundles are paused, switched off, temporarily down, at their in-flight limit or slow to answer; when it is a v1 transaction and no bundle path is confirmed to take v1; or when the tip paid to one tip account is too small to pay the builders. Send it again later, or withoutbundleOnly, and tip one tip account per send.nonce_not_bundled(HTTP 400, JSON-RPC-32602): it uses a durable nonce, and durable-nonce transactions are never carried in the bundles we send for you. Send it withoutbundleOnly.
The trade-off
bundleOnly uses fewer paths. A plain copy can reach a leader that no bundle reaches, so a transaction sent only
inside bundles may land later, or not at all where it would have landed as a plain copy. Use it when a failed
transaction costs you more than a slower one: a trade whose price may have moved, for instance. Leave it off when
landing soon matters most.
It is also the way to keep a swap off the paths where jitodontfront does not reach. That rule makes Jito refuse any
bundle that puts a transaction ahead of yours, and every bundle we send puts yours first; but plain copies go to
leaders that never read it.
A bundle you send with sendBundle always travels this way.