Struct ethers_flashbots::BundleRequest [−][src]
pub struct BundleRequest { /* fields omitted */ }Expand description
A bundle that can be submitted to a Flashbots relay.
The bundle can include your own transactions and transactions from the mempool.
Additionally, this bundle can be simulated through a relay if simulation
parameters are provided using BundleRequest::set_simulation_block and
BundleRequest::set_simulation_timestamp.
Please note that some parameters are required, and submitting a bundle without them will get it rejected pre-flight. The required parameters include:
- At least one transaction (
BundleRequest::push_transaction) - A target block (
BundleRequest::set_block)
Implementations
Adds a transaction to the bundle request.
Transactions added to the bundle can either be novel transactions, i.e. transactions that you have crafted, or they can be from one of the mempool APIs.
Adds a revertible transaction to the bundle request.
This differs from BundleRequest::push_transaction in that the bund will still be
considered valid if the transaction reverts.
Get a reference to the transactions currently in the bundle request.
Get the block that determines the state for bundle simulation (if any).
See eth_callBundle in the Flashbots documentation
for more information on bundle simulations.
Set the block that determines the state for bundle simulation.
Get the UNIX timestamp used for bundle simulation (if any).
See eth_callBundle in the Flashbots documentation
for more information on bundle simulations.
Set the UNIX timestamp used for bundle simulation.
Get the minimum timestamp for which this bundle is valid (if any), in seconds since the UNIX epoch.
Set the minimum timestamp for which this bundle is valid (if any), in seconds since the UNIX epoch.
Get the maximum timestamp for which this bundle is valid (if any), in seconds since the UNIX epoch.
Set the maximum timestamp for which this bundle is valid (if any), in seconds since the UNIX epoch.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for BundleRequest
impl Send for BundleRequest
impl Sync for BundleRequest
impl Unpin for BundleRequest
impl UnwindSafe for BundleRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self