pub struct TransactionTrace {
Show 24 fields pub to: Vec<u8>, pub nonce: u64, pub gas_price: Option<BigInt>, pub gas_limit: u64, pub value: Option<BigInt>, pub input: Vec<u8>, pub v: Vec<u8>, pub r: Vec<u8>, pub s: Vec<u8>, pub gas_used: u64, pub type: i32, pub access_list: Vec<AccessTuple>, pub max_fee_per_gas: Option<BigInt>, pub max_priority_fee_per_gas: Option<BigInt>, pub index: u32, pub hash: Vec<u8>, pub from: Vec<u8>, pub return_data: Vec<u8>, pub public_key: Vec<u8>, pub begin_ordinal: u64, pub end_ordinal: u64, pub status: i32, pub receipt: Option<TransactionReceipt>, pub calls: Vec<Call>,
}

Fields

to: Vec<u8>

consensus

nonce: u64gas_price: Option<BigInt>

GasPrice represents the effective price that has been paid for each gas unit of this transaction. Over time, the Ethereum rules changes regarding GasPrice field here. Before London fork, the GasPrice was always set to the fixed gas price. After London fork, this value has different meaning depending on the transaction type (see Type field).

In cases where TransactionTrace.Type == TRX_TYPE_LEGACY || TRX_TYPE_ACCESS_LIST, then GasPrice has the same meaning as before the London fork.

In cases where TransactionTrace.Type == TRX_TYPE_DYNAMIC_FEE, then GasPrice is the effective gas price paid for the transaction which is equals to BlockHeader.BaseFeePerGas + TransactionTrace.

gas_limit: u64

GasLimit is the maximum of gas unit the sender of the transaction is willing to consume when perform the EVM execution of the whole transaction

value: Option<BigInt>

Value is the amount of Ether transferred as part of this transaction.

input: Vec<u8>

Input data the transaction will receive for execution of EVM.

v: Vec<u8>

V is the recovery ID value for the signature Y point.

r: Vec<u8>

R is the signature’s X point on the elliptic curve (32 bytes).

s: Vec<u8>

S is the signature’s Y point on the elliptic curve (32 bytes).

gas_used: u64

GasUsed is the total amount of gas unit used for the whole execution of the transaction.

type: i32

Type represents the Ethereum transaction type, available only since EIP-2718 & EIP-2930 activation which happened on Berlin fork. The value is always set even for transaction before Berlin fork because those before the fork are still legacy transactions.

access_list: Vec<AccessTuple>

AcccessList represents the storage access this transaction has agreed to do in which case those storage access cost less gas unit per access.

This will is populated only if TransactionTrace.Type == TRX_TYPE_ACCESS_LIST || TRX_TYPE_DYNAMIC_FEE which is possible only if Berlin (TRX_TYPE_ACCESS_LIST) nor London (TRX_TYPE_DYNAMIC_FEE) fork are active on the chain.

max_fee_per_gas: Option<BigInt>

MaxFeePerGas is the maximum fee per gas the user is willing to pay for the transaction gas used.

This will is populated only if TransactionTrace.Type == TRX_TYPE_DYNAMIC_FEE which is possible only if Londong fork is active on the chain.

max_priority_fee_per_gas: Option<BigInt>

MaxPriorityFeePerGas is priority fee per gas the user to pay in extra to the miner on top of the block’s base fee.

This will is populated only if TransactionTrace.Type == TRX_TYPE_DYNAMIC_FEE which is possible only if Londong fork is active on the chain.

index: u32

meta

hash: Vec<u8>from: Vec<u8>return_data: Vec<u8>public_key: Vec<u8>begin_ordinal: u64end_ordinal: u64status: i32receipt: Option<TransactionReceipt>calls: Vec<Call>

Implementations

Returns the enum value of type, or the default if the field is set to an invalid enum value.

Sets type to the provided enum value.

Returns the enum value of status, or the default if the field is set to an invalid enum value.

Sets status to the provided enum value.

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

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. 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.

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.