pub struct Receipt {Show 13 fields
pub transaction_hash: B256,
pub transaction_index: Option<u64>,
pub block_hash: Option<B256>,
pub block_number: Option<u64>,
pub from: Address,
pub to: Option<Address>,
pub contract_address: Option<Address>,
pub gas_used: u64,
pub cumulative_gas_used: u64,
pub effective_gas_price: Option<U256>,
pub status: Option<bool>,
pub logs: Vec<Log>,
pub kind: Option<u8>,
}Expand description
What eth_getTransactionReceipt answers once a transaction is mined.
Fields§
§transaction_hash: B256§transaction_index: Option<u64>§block_hash: Option<B256>§block_number: Option<u64>§from: Address§to: Option<Address>None for a creation.
contract_address: Option<Address>The contract a creation made; None for a call.
gas_used: u64§cumulative_gas_used: u64§effective_gas_price: Option<U256>§status: Option<bool>true when it succeeded, false when it reverted.
logs: Vec<Log>§kind: Option<u8>The transaction type: 2 for EIP-1559.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Receipt
impl<'de> Deserialize<'de> for Receipt
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
impl Eq for Receipt
impl StructuralPartialEq for Receipt
Auto Trait Implementations§
impl Freeze for Receipt
impl RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin for Receipt
impl UnsafeUnpin for Receipt
impl UnwindSafe for Receipt
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.