Struct primitives::receipt::Receipt
source · pub struct Receipt {
pub accumulated_gas_used: U256,
pub gas_fee: U256,
pub gas_sponsor_paid: bool,
pub log_bloom: Bloom,
pub logs: Vec<LogEntry>,
pub outcome_status: TransactionStatus,
pub storage_sponsor_paid: bool,
pub storage_collateralized: Vec<StorageChange>,
pub storage_released: Vec<StorageChange>,
pub burnt_gas_fee: Option<U256>,
}
Expand description
Information describing execution of a transaction.
Fields§
§accumulated_gas_used: U256
The total gas used (not gas charged) in the block following execution of the transaction.
gas_fee: U256
The gas fee charged for transaction execution.
gas_sponsor_paid: bool
The designated account to bear the gas fee, if any.
log_bloom: Bloom
The OR-wide combination of all logs’ blooms for this transaction.
logs: Vec<LogEntry>
The logs stemming from this transaction.
outcome_status: TransactionStatus
Transaction outcome.
storage_sponsor_paid: bool
The designated account to bear the storage fee, if any.
storage_collateralized: Vec<StorageChange>
§storage_released: Vec<StorageChange>
§burnt_gas_fee: Option<U256>
Implementations§
source§impl Receipt
impl Receipt
pub fn new( outcome: TransactionStatus, accumulated_gas_used: U256, gas_fee: U256, gas_sponsor_paid: bool, logs: Vec<LogEntry>, log_bloom: Bloom, storage_sponsor_paid: bool, storage_collateralized: Vec<StorageChange>, storage_released: Vec<StorageChange>, burnt_gas_fee: Option<U256> ) -> Self
pub fn tx_skipped(&self) -> bool
pub fn tx_success(&self) -> bool
pub fn accumulated_gas_used(&self) -> U256
pub fn logs(&self) -> &[LogEntry]
Trait Implementations§
source§impl PartialEq for Receipt
impl PartialEq for Receipt
impl Eq for Receipt
impl StructuralPartialEq for Receipt
Auto Trait Implementations§
impl RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin 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