Struct ethers_flashbots::SimulatedTransaction [−][src]
pub struct SimulatedTransaction {
pub hash: H256,
pub coinbase_diff: U256,
pub coinbase_tip: U256,
pub gas_price: U256,
pub gas_used: U256,
pub gas_fees: U256,
pub from: Address,
pub to: Option<Address>,
pub value: U256,
pub error: Option<String>,
}Expand description
Details of a simulated transaction.
Details for a transaction that has been simulated as part of a bundle.
Fields
hash: H256The transaction hash
coinbase_diff: U256The difference in coinbase’s balance due to this transaction.
This includes tips and gas fees for this transaction.
coinbase_tip: U256The amount of Eth sent to coinbase in this transaction.
gas_price: U256The gas price.
gas_used: U256The amount of gas used in this transaction.
gas_fees: U256The total gas fees for this transaction.
from: AddressThe origin of this transaction.
to: Option<Address>The destination of this transaction.
If this is None, then the transaction was to a newly
deployed contract.
value: U256The value sent in this transaction.
error: Option<String>The reason this transaction reverted (if it did).
Implementations
The effective gas price of the transaction,
i.e. coinbase_diff / gas_used.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SimulatedTransaction
impl Send for SimulatedTransaction
impl Sync for SimulatedTransaction
impl Unpin for SimulatedTransaction
impl UnwindSafe for SimulatedTransaction
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