pub enum TransactionReceipt {
PreByzantium(PreByzantiumTransactionReceipt),
PostByzantium(PostByzantiumTransactionReceipt),
}Expand description
As received by getTransactionReceipt
Pre byzantium transctions have a root field Post byzantium transactions have a status field
See more: https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactionreceipt
Variants§
PreByzantium(PreByzantiumTransactionReceipt)
PostByzantium(PostByzantiumTransactionReceipt)
Implementations§
Source§impl TransactionReceipt
impl TransactionReceipt
pub fn get_block_number(&self) -> Option<Uint256>
pub fn get_transaction_hash(&self) -> Uint256
pub fn get_block_hash(&self) -> Option<Uint256>
pub fn get_contract_address(&self) -> Option<Address>
pub fn get_gas_used(&self) -> Uint256
pub fn get_cumulative_gas_used(&self) -> Uint256
pub fn get_effective_gas_price(&self) -> Uint256
pub fn get_logs(&self) -> Vec<Log>
pub fn get_logs_bloom(&self) -> Data
pub fn get_transaction_index(&self) -> Option<Uint256>
pub fn get_from(&self) -> Address
pub fn get_to(&self) -> Option<Address>
pub fn get_type(&self) -> TransactionType
pub fn get_success(&self) -> bool
pub fn get_status(&self) -> bool
Trait Implementations§
Source§impl Clone for TransactionReceipt
impl Clone for TransactionReceipt
Source§fn clone(&self) -> TransactionReceipt
fn clone(&self) -> TransactionReceipt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionReceipt
impl Debug for TransactionReceipt
Source§impl<'de> Deserialize<'de> for TransactionReceipt
impl<'de> Deserialize<'de> for TransactionReceipt
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 TransactionReceipt
Source§impl Hash for TransactionReceipt
impl Hash for TransactionReceipt
Source§impl PartialEq for TransactionReceipt
impl PartialEq for TransactionReceipt
Source§impl Serialize for TransactionReceipt
impl Serialize for TransactionReceipt
impl StructuralPartialEq for TransactionReceipt
Auto Trait Implementations§
impl Freeze for TransactionReceipt
impl RefUnwindSafe for TransactionReceipt
impl Send for TransactionReceipt
impl Sync for TransactionReceipt
impl Unpin for TransactionReceipt
impl UnsafeUnpin for TransactionReceipt
impl UnwindSafe for TransactionReceipt
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
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.