Struct ethers::types::TransactionReceipt [−][src]
pub struct TransactionReceipt {Show 13 fields
pub transaction_hash: H256,
pub transaction_index: U64,
pub block_hash: Option<H256>,
pub block_number: Option<U64>,
pub cumulative_gas_used: U256,
pub gas_used: Option<U256>,
pub contract_address: Option<H160>,
pub logs: Vec<Log, Global>,
pub status: Option<U64>,
pub root: Option<H256>,
pub logs_bloom: Bloom,
pub transaction_type: Option<U64>,
pub effective_gas_price: Option<U256>,
}
Expand description
“Receipt” of an executed transaction: details of its execution.
Fields
transaction_hash: H256
Transaction hash.
transaction_index: U64
Index within the block.
block_hash: Option<H256>
Hash of the block this transaction was included within.
block_number: Option<U64>
Number of the block this transaction was included within.
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<H160>
Contract address created, or None
if not a deployment.
logs: Vec<Log, Global>
Logs generated within this transaction.
status: Option<U64>
Status: either 1 (success) or 0 (failure). Only present after activation of EIP-658
root: Option<H256>
State root. Only present before activation of EIP-658
logs_bloom: Bloom
Logs bloom
transaction_type: Option<U64>
Transaction type, Some(1) for AccessList transaction, None for Legacy
effective_gas_price: Option<U256>
The price paid post-execution by the transaction (i.e. base fee + priority fee). Both fields in 1559-style transactions are maximums (max fee + max priority fee), the amount that’s actually paid by users can only be determined post-execution
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<TransactionReceipt, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<TransactionReceipt, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for TransactionReceipt
impl Send for TransactionReceipt
impl Sync for TransactionReceipt
impl Unpin for TransactionReceipt
impl UnwindSafe for TransactionReceipt
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more