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: H256

Transaction hash.

transaction_index: U64

Index 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: H160

address of the sender.

to: Option<H160>cumulative_gas_used: U256

Cumulative 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: Bloom

Logs 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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Append a value to the stream
Get rlp-encoded bytes for this instance
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Serialize this value into the given Serde serializer. Read more

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
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Wrap the input message T in a tonic::Request
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more