alloy_network_primitives

Trait ReceiptResponse

source
pub trait ReceiptResponse {
Show 15 methods // Required methods fn contract_address(&self) -> Option<Address>; fn status(&self) -> bool; fn block_hash(&self) -> Option<BlockHash>; fn block_number(&self) -> Option<u64>; fn transaction_hash(&self) -> TxHash; fn transaction_index(&self) -> Option<u64>; fn gas_used(&self) -> u128; fn effective_gas_price(&self) -> u128; fn blob_gas_used(&self) -> Option<u128>; fn blob_gas_price(&self) -> Option<u128>; fn from(&self) -> Address; fn to(&self) -> Option<Address>; fn authorization_list(&self) -> Option<&[SignedAuthorization]>; fn cumulative_gas_used(&self) -> u128; fn state_root(&self) -> Option<B256>;
}
Expand description

Receipt JSON-RPC response.

Required Methods§

source

fn contract_address(&self) -> Option<Address>

Address of the created contract, or None if the transaction was not a deployment.

source

fn status(&self) -> bool

Status of the transaction.

§Note

Caution must be taken when using this method for deep-historical receipts, as it may not accurately reflect the status of the transaction. The transaction status is not knowable from the receipt for transactions before [EIP-658].

source

fn block_hash(&self) -> Option<BlockHash>

Hash of the block this transaction was included within.

source

fn block_number(&self) -> Option<u64>

Number of the block this transaction was included within.

source

fn transaction_hash(&self) -> TxHash

Transaction Hash.

source

fn transaction_index(&self) -> Option<u64>

Index within the block.

source

fn gas_used(&self) -> u128

Gas used by this transaction alone.

source

fn effective_gas_price(&self) -> u128

Effective gas price.

source

fn blob_gas_used(&self) -> Option<u128>

Blob gas used by the eip-4844 transaction.

source

fn blob_gas_price(&self) -> Option<u128>

Blob gas price paid by the eip-4844 transaction.

source

fn from(&self) -> Address

Address of the sender.

source

fn to(&self) -> Option<Address>

Address of the receiver.

source

fn authorization_list(&self) -> Option<&[SignedAuthorization]>

EIP-7702 Authorization list.

source

fn cumulative_gas_used(&self) -> u128

Returns the cumulative gas used at this receipt.

source

fn state_root(&self) -> Option<B256>

The post-transaction state root (pre Byzantium)

EIP98 makes this field optional.

Implementations on Foreign Types§

source§

impl<T: ReceiptResponse> ReceiptResponse for WithOtherFields<T>

Implementors§