Struct ethers_flashbots::SimulatedTransaction
source · 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: Option<Bytes>,
pub error: Option<String>,
pub revert: 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: Option<Bytes>The return value of the transaction.
error: Option<String>The reason this transaction failed (if it did).
revert: Option<String>The revert reason for this transaction, if available.
Implementations§
source§impl SimulatedTransaction
impl SimulatedTransaction
sourcepub fn effective_gas_price(&self) -> U256
pub fn effective_gas_price(&self) -> U256
The effective gas price of the transaction,
i.e. coinbase_diff / gas_used.
Trait Implementations§
source§impl Clone for SimulatedTransaction
impl Clone for SimulatedTransaction
source§fn clone(&self) -> SimulatedTransaction
fn clone(&self) -> SimulatedTransaction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SimulatedTransaction
impl Debug for SimulatedTransaction
source§impl<'de> Deserialize<'de> for SimulatedTransaction
impl<'de> Deserialize<'de> for SimulatedTransaction
source§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