Skip to content

Conversation

@cody-wang-cb
Copy link

@cody-wang-cb cody-wang-cb commented Nov 26, 2025

Summary

  • Adds a new base_sendBackrunBundle RPC endpoint and in-memory store to enable backrun transactions to execute immediately after their target transactions during block building.
  • In the block building loop, executes the backrun bundles (if found) after executing the target transactions
  • Integrates the builder with audit in order to submit block building related events
  • Also adds a utility RPC base_txbundleid to receive the bundle id for a raw transaction, as standard bundles are not supported yet, but for event tracking the bundle id is needed

TIPS PR: base/tips#78, base/tips#98

image

@cody-wang-cb cody-wang-cb marked this pull request as draft December 10, 2025 00:15
@cody-wang-cb cody-wang-cb changed the title feat(bundles): Add base_sendBackrunBundle RPC feat(bundles): Support backrun bundles execution Dec 15, 2025
@cody-wang-cb cody-wang-cb marked this pull request as ready for review December 15, 2025 19:40
#[cfg_attr(test, rpc(server, client, namespace = "base"))]
pub trait BaseBundlesApiExt {
#[method(name = "sendBackrunBundle")]
async fn send_backrun_bundle(&self, bundle: Bundle, bundle_id: Uuid) -> RpcResult<()>;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thinking out loud: at a glance, it appears that in backrun bundles, the target tx is always the first tx in the bundle

therefore, is it possible to have the impl of send_backrun_bundle also set self.bundle_store.set_tx_bundle_id(...)?

@cody-wang-cb cody-wang-cb marked this pull request as draft December 17, 2025 18:40
@cody-wang-cb cody-wang-cb reopened this Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants