Open ape-dev-cs opened 1 year ago
Supportive of this, collecting some feedback on how people are currently doing private transactions / bundles (with Foundry), particularly for rescue operations and MEV-able transactions.
@ape-dev-cs are you still interested in working on this?
One important note that was raised by users was that any proposed solution should also cover the use case of sending private transactions on L2s by directly interacting with the sequencer RPC.
Component
Forge
Describe the feature you would like
I'd like to be able to easily send flashbots bundles within forge scripts for use-cases involving transactions that cannot hit public mempools for security reasons (e.g. MEV-able transactions, whitehat rescues, etc).
Doing this natively from a forge script obviates the need for me to use Hardhat for use-cases like this, or for me to write custom TypeScript/Rust code for each instance.
Additional context
I have a draft/WIP PR for this here: https://github.com/foundry-rs/foundry/pull/4948