pub struct SimulatedTransaction {Show 13 fields
pub hash: TxHash,
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>,
pub access_list: Option<AccessList>,
pub logs: Option<Vec<Log>>,
}
Expand description
Details of a simulated transaction.
Details for a transaction that has been simulated as part of a bundle.
Fields§
§hash: TxHash
The transaction hash
coinbase_diff: U256
The difference in coinbase’s balance due to this transaction.
This includes tips and gas fees for this transaction.
coinbase_tip: U256
The amount of Eth sent to coinbase in this transaction.
gas_price: U256
The gas price.
gas_used: U256
The amount of gas used in this transaction.
gas_fees: U256
The total gas fees for this transaction.
from: Address
The 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.
access_list: Option<AccessList>
§logs: Option<Vec<Log>>
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl Display for SimulatedTransaction
impl Display for SimulatedTransaction
Auto Trait Implementations§
impl !Freeze for SimulatedTransaction
impl RefUnwindSafe for SimulatedTransaction
impl Send for SimulatedTransaction
impl Sync for SimulatedTransaction
impl Unpin for SimulatedTransaction
impl UnwindSafe for SimulatedTransaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
impl<T> RpcObject for Twhere
T: RpcParam + RpcReturn,
impl<T> RpcParam for T
impl<T> RpcReturn for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 368 bytes