pub struct TransactionReceipt {Show 13 fields
pub block_hash: Hex32,
pub block_number: Nat256,
pub effective_gas_price: Nat256,
pub gas_used: Nat256,
pub status: Option<Nat256>,
pub transaction_hash: Hex32,
pub contract_address: Option<Hex20>,
pub from: Hex20,
pub logs: Vec<LogEntry>,
pub logs_bloom: Hex256,
pub to: Option<Hex20>,
pub transaction_index: Nat256,
pub tx_type: HexByte,
}
Fields§
§block_hash: Hex32
The hash of the block containing the transaction.
block_number: Nat256
The number of the block containing the transaction.
effective_gas_price: Nat256
The actual value per gas deducted from the sender’s account.
Before EIP-1559, this is equal to the transaction’s gas price.
After, it is equal to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas)
.
gas_used: Nat256
The amount of gas used by this specific transaction alone.
status: Option<Nat256>
Either 1 (success) or 0 (failure). Only specified for transactions included after the Byzantium upgrade.
transaction_hash: Hex32
The hash of the transaction
contract_address: Option<Hex20>
The contract address created, if the transaction was a contract creation, otherwise None
.
from: Hex20
The address of the sender
logs: Vec<LogEntry>
An array of log objects generated by this transaction.
logs_bloom: Hex256
Bloom filter for light clients to quickly retrieve related logs.
to: Option<Hex20>
Address of the receiver or None
in a contract creation transaction.
transaction_index: Nat256
Transaction’s index position in the block
tx_type: HexByte
The type of the transaction:
- “0x0” for legacy transactions (pre- EIP-2718)
- “0x1” for access list transactions (EIP-2930)
- “0x2” for EIP-1559 transactions
Trait Implementations§
Source§impl CandidType for TransactionReceipt
impl CandidType for TransactionReceipt
Source§impl Clone for TransactionReceipt
impl Clone for TransactionReceipt
Source§fn clone(&self) -> TransactionReceipt
fn clone(&self) -> TransactionReceipt
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more