Struct substreams_ethereum::pb::eth::v2::TransactionTrace
source · pub struct TransactionTrace {Show 24 fields
pub to: Vec<u8, Global>,
pub nonce: u64,
pub gas_price: Option<BigInt>,
pub gas_limit: u64,
pub value: Option<BigInt>,
pub input: Vec<u8, Global>,
pub v: Vec<u8, Global>,
pub r: Vec<u8, Global>,
pub s: Vec<u8, Global>,
pub gas_used: u64,
pub type: i32,
pub access_list: Vec<AccessTuple, Global>,
pub max_fee_per_gas: Option<BigInt>,
pub max_priority_fee_per_gas: Option<BigInt>,
pub index: u32,
pub hash: Vec<u8, Global>,
pub from: Vec<u8, Global>,
pub return_data: Vec<u8, Global>,
pub public_key: Vec<u8, Global>,
pub begin_ordinal: u64,
pub end_ordinal: u64,
pub status: i32,
pub receipt: Option<TransactionReceipt>,
pub calls: Vec<Call, Global>,
}Fields§
§to: Vec<u8, Global>consensus
nonce: u64§gas_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: u64GasLimit 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, Global>Input data the transaction will receive for execution of EVM.
v: Vec<u8, Global>V is the recovery ID value for the signature Y point.
r: Vec<u8, Global>R is the signature’s X point on the elliptic curve (32 bytes).
s: Vec<u8, Global>S is the signature’s Y point on the elliptic curve (32 bytes).
gas_used: u64GasUsed is the total amount of gas unit used for the whole execution of the transaction.
type: i32Type 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, Global>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: u32meta
hash: Vec<u8, Global>§from: Vec<u8, Global>§return_data: Vec<u8, Global>§public_key: Vec<u8, Global>§begin_ordinal: u64§end_ordinal: u64§status: i32§receipt: Option<TransactionReceipt>§calls: Vec<Call, Global>Implementations§
source§impl TransactionTrace
impl TransactionTrace
sourcepub fn type(&self) -> Type
pub fn type(&self) -> Type
Returns the enum value of type, or the default if the field is set to an invalid enum value.
sourcepub fn status(&self) -> TransactionTraceStatus
pub fn status(&self) -> TransactionTraceStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: TransactionTraceStatus)
pub fn set_status(&mut self, value: TransactionTraceStatus)
Sets status to the provided enum value.
Trait Implementations§
source§impl Clone for TransactionTrace
impl Clone for TransactionTrace
source§fn clone(&self) -> TransactionTrace
fn clone(&self) -> TransactionTrace
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TransactionTrace
impl Debug for TransactionTrace
source§impl Default for TransactionTrace
impl Default for TransactionTrace
source§fn default() -> TransactionTrace
fn default() -> TransactionTrace
source§impl Message for TransactionTrace
impl Message for TransactionTrace
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.source§impl PartialEq<TransactionTrace> for TransactionTrace
impl PartialEq<TransactionTrace> for TransactionTrace
source§fn eq(&self, other: &TransactionTrace) -> bool
fn eq(&self, other: &TransactionTrace) -> bool
self and other values to be equal, and is used
by ==.