pub struct EVMBaseReceipt {Show 15 fields
pub transaction_hash: B256,
pub transaction_index: Index,
pub block_hash: Option<B256>,
pub block_number: Option<U64>,
pub from: Address,
pub to: Option<Address>,
pub cumulative_gas_used: U256,
pub gas_used: Option<U256>,
pub contract_address: Option<Address>,
pub logs: Vec<BaseLog>,
pub status: Option<U64>,
pub root: Option<B256>,
pub logs_bloom: B2048,
pub transaction_type: Option<U64>,
pub effective_gas_price: Option<U256>,
}
Expand description
Base Receipt struct Copied from web3 crate (now deprecated) and slightly modified for alloy compatibility
Fields§
§transaction_hash: B256
Transaction hash.
transaction_index: Index
Index within the block.
block_hash: Option<B256>
Hash of the block this transaction was included within.
block_number: Option<U64>
Number of the block this transaction was included within.
from: Address
Sender Note: default address if the client did not return this value (maintains backwards compatibility for <= 0.7.0 when this field was missing)
to: Option<Address>
Recipient (None when contract creation)
Note: Also None
if the client did not return this value
(maintains backwards compatibility for <= 0.7.0 when this field was missing)
cumulative_gas_used: U256
Cumulative gas used within the block after this was executed.
gas_used: Option<U256>
Gas used by this transaction alone.
Gas used is None
if the the client is running in light client mode.
contract_address: Option<Address>
Contract address created, or None
if not a deployment.
logs: Vec<BaseLog>
Logs generated within this transaction.
status: Option<U64>
Status: either 1 (success) or 0 (failure).
root: Option<B256>
State root.
logs_bloom: B2048
Logs bloom
transaction_type: Option<U64>
Transaction type, Some(1) for AccessList transaction, None for Legacy
effective_gas_price: Option<U256>
Effective gas price
Trait Implementations§
Source§impl Clone for BaseReceipt
impl Clone for BaseReceipt
Source§fn clone(&self) -> BaseReceipt
fn clone(&self) -> BaseReceipt
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BaseReceipt
impl Debug for BaseReceipt
Source§impl Default for BaseReceipt
impl Default for BaseReceipt
Source§fn default() -> BaseReceipt
fn default() -> BaseReceipt
Source§impl<'de> Deserialize<'de> for BaseReceipt
impl<'de> Deserialize<'de> for BaseReceipt
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 From<BaseReceipt> for TransactionReceipt
impl From<BaseReceipt> for TransactionReceipt
Source§fn from(tx: BaseReceipt) -> Self
fn from(tx: BaseReceipt) -> Self
Source§impl PartialEq for BaseReceipt
impl PartialEq for BaseReceipt
Source§impl Serialize for BaseReceipt
impl Serialize for BaseReceipt
impl StructuralPartialEq for BaseReceipt
Auto Trait Implementations§
impl Freeze for BaseReceipt
impl RefUnwindSafe for BaseReceipt
impl Send for BaseReceipt
impl Sync for BaseReceipt
impl Unpin for BaseReceipt
impl UnwindSafe for BaseReceipt
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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