foundry-rs / foundry-rs/foundry

Feature: Support for sending Flashbots bundles from forge scripts

Open
#4,947 2 comments 3 reactions 0 assignees View on GitHub
A-cheatcodes A-private-transactions Cmd-forge-script T-feature
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
16h 38m
Merged PRs (30d)
511

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.