TransactionReceipt

Type Alias TransactionReceipt 

Source
pub type TransactionReceipt = TransactionReceipt;

Aliased Type§

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>, pub status: Option<U64>, pub root: Option<H256>, pub logs_bloom: Bloom, pub transaction_type: Option<U64>, pub effective_gas_price: Option<U256>,
}

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

Sender Note: default address if the client did not return this value (maintains backwards compatibility for <= 0.7.0 when this field was missing)

§to: Option<H160>

Recipient (None when contract creation) Note: Also None if the client did not return this value (maintains backwards compatibility for <= 0.7.0 when this field was missing)

§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>

Logs generated within this transaction.

§status: Option<U64>

Status: either 1 (success) or 0 (failure).

§root: Option<H256>

State root.

§logs_bloom: Bloom

Logs bloom

§transaction_type: Option<U64>

Transaction type, Some(1) for AccessList transaction, None for Legacy

§effective_gas_price: Option<U256>

Effective gas price