eth_sendBundle
N.B.: If the refundPercent
field is set, the builder will construct a refund transaction automatically. However, if the refund amount does not cover the cost of the transaction (i.e., gas_used * base_fee
), the bundle will be discarded.
Refund Example
Consider the following Bundle:
TXN 1 - User swap (Base fee: 50 Gwei, Piority fee 3 Gwei, Gas: 280k)
TXN 2 - Backrun (Base fee: 50 Gwei, Priority fee 100 Gwei, Gas: 150k)
refundPercent
: 90%Current block base fee: 50 Gwei
Calculation:
ETH reward of the last transaction in the bundle = (150k x 100 Gwei) = 15,000 Gwei
ETH reward after transfer transaction fees = 15000 - (21k x 50 Gwei) = 13,950 Gwei
Refund amount = 0.9 x 13,950 Gwei = 12,555 Gwei
Sponsored Bundles
Our builder supports Sponsored Bundles. If we receive a bundle that fails with LackOfFundForGasLimit
error, we will automatically send the ETH required to cover the gas fees and value transfer for the transaction to succeed.
The caveat here is that the bundle must of course increase the builder balance, as we will need to recoup this sponsoring cost with the bundle’s execution.
For further details, see our substack article.
CURL example
Response example
Bundle Hash
Here is the algorithm for determining the bundle hash:
Last updated