pub struct Executed<T = FlatTrace, V = VMTrace> {
    pub exception: Option<Error>,
    pub gas: U256,
    pub gas_used: U256,
    pub refunded: U256,
    pub cumulative_gas_used: U256,
    pub logs: Vec<LogEntry>,
    pub contracts_created: Vec<Address>,
    pub output: Bytes,
    pub trace: Vec<T>,
    pub vm_trace: Option<V>,
    pub state_diff: Option<StateDiff>,
}
Expand description

Transaction execution receipt.

Fields

exception: Option<Error>

True if the outer call/create resulted in an exceptional exit.

gas: U256

Gas paid up front for execution of transaction.

gas_used: U256

Gas used during execution of transaction.

refunded: U256

Gas refunded after the execution of transaction. To get gas that was required up front, add refunded and gas_used.

cumulative_gas_used: U256

Cumulative gas used in current block so far.

cumulative_gas_used = gas_used(t0) + gas_used(t1) + ... gas_used(tn)

where tn is current transaction.

logs: Vec<LogEntry>

Vector of logs generated by transaction.

contracts_created: Vec<Address>

Addresses of contracts created during execution of transaction. Ordered from earliest creation.

eg. sender creates contract A and A in constructor creates contract B

B creation ends first, and it will be the first element of the vector.

output: Bytes

Transaction output.

trace: Vec<T>

The trace of this transaction.

vm_trace: Option<V>

The VM trace of this transaction.

state_diff: Option<StateDiff>

The state diff, if we traced it.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.