Struct ethers_iqkms::types::TransactionReceipt
source · [−]pub struct TransactionReceipt {Show 15 fields
pub transaction_hash: H256,
pub transaction_index: U64,
pub block_hash: Option<H256>,
pub block_number: Option<U64>,
pub from: H160,
pub to: Option<H160>,
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: H256Transaction hash.
transaction_index: U64Index 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.
from: H160address of the sender.
to: Option<H160>cumulative_gas_used: U256Cumulative 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: BloomLogs 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
sourceimpl Clone for TransactionReceipt
impl Clone for TransactionReceipt
sourcefn clone(&self) -> TransactionReceipt
fn clone(&self) -> TransactionReceipt
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for TransactionReceipt
impl Debug for TransactionReceipt
sourceimpl Default for TransactionReceipt
impl Default for TransactionReceipt
sourcefn default() -> TransactionReceipt
fn default() -> TransactionReceipt
sourceimpl<'de> Deserialize<'de> for TransactionReceipt
impl<'de> Deserialize<'de> for TransactionReceipt
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<TransactionReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<TransactionReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
sourceimpl Encodable for TransactionReceipt
impl Encodable for TransactionReceipt
sourcefn rlp_append(&self, s: &mut RlpStream)
fn rlp_append(&self, s: &mut RlpStream)
fn rlp_bytes(&self) -> BytesMut
fn rlp_bytes(&self) -> BytesMut
sourceimpl Ord for TransactionReceipt
impl Ord for TransactionReceipt
sourcefn cmp(&self, other: &TransactionReceipt) -> Ordering
fn cmp(&self, other: &TransactionReceipt) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
sourceimpl PartialEq<TransactionReceipt> for TransactionReceipt
impl PartialEq<TransactionReceipt> for TransactionReceipt
sourcefn eq(&self, other: &TransactionReceipt) -> bool
fn eq(&self, other: &TransactionReceipt) -> bool
sourceimpl PartialOrd<TransactionReceipt> for TransactionReceipt
impl PartialOrd<TransactionReceipt> for TransactionReceipt
sourcefn partial_cmp(&self, other: &TransactionReceipt) -> Option<Ordering>
fn partial_cmp(&self, other: &TransactionReceipt) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl Serialize for TransactionReceipt
impl Serialize for TransactionReceipt
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for TransactionReceipt
impl StructuralEq for TransactionReceipt
impl StructuralPartialEq for TransactionReceipt
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request