pub struct EVMBaseTransaction {Show 21 fields
pub hash: B256,
pub nonce: U256,
pub block_hash: Option<B256>,
pub block_number: Option<U64>,
pub transaction_index: Option<Index>,
pub from: Option<Address>,
pub to: Option<Address>,
pub value: U256,
pub gas_price: Option<U256>,
pub gas: U256,
pub input: Bytes,
pub v: Option<U64>,
pub r: Option<U256>,
pub s: Option<U256>,
pub raw: Option<Bytes>,
pub transaction_type: Option<U64>,
pub access_list: Option<AccessList>,
pub max_fee_per_gas: Option<U256>,
pub max_priority_fee_per_gas: Option<U256>,
pub l2: BaseL2Transaction,
pub extra: HashMap<String, Value>,
}
Expand description
Base Transaction struct Copied from web3 crate (now deprecated) and slightly modified for alloy compatibility
Fields§
§hash: B256
Hash
nonce: U256
Nonce
block_hash: Option<B256>
Block hash. None when pending.
block_number: Option<U64>
Block number. None when pending.
transaction_index: Option<Index>
Transaction Index. None when pending.
from: Option<Address>
Sender
to: Option<Address>
Recipient (None when contract creation)
value: U256
Transferred value
gas_price: Option<U256>
Gas Price
gas: U256
Gas amount
input: Bytes
Input data
v: Option<U64>
ECDSA recovery id
r: Option<U256>
ECDSA signature r, 32 bytes
s: Option<U256>
ECDSA signature s, 32 bytes
raw: Option<Bytes>
Raw transaction data
transaction_type: Option<U64>
Transaction type, Some(1) for AccessList transaction, None for Legacy
access_list: Option<AccessList>
Access list
max_fee_per_gas: Option<U256>
Max fee per gas
max_priority_fee_per_gas: Option<U256>
miner bribe
l2: BaseL2Transaction
L2-specific transaction fields
extra: HashMap<String, Value>
Catch-all for non-standard fields
Trait Implementations§
Source§impl Clone for BaseTransaction
impl Clone for BaseTransaction
Source§fn clone(&self) -> BaseTransaction
fn clone(&self) -> BaseTransaction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BaseTransaction
impl Debug for BaseTransaction
Source§impl Default for BaseTransaction
impl Default for BaseTransaction
Source§fn default() -> BaseTransaction
fn default() -> BaseTransaction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BaseTransaction
impl<'de> Deserialize<'de> for BaseTransaction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BaseTransaction> for Transaction
impl From<BaseTransaction> for Transaction
Source§fn from(tx: BaseTransaction) -> Self
fn from(tx: BaseTransaction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BaseTransaction
impl PartialEq for BaseTransaction
Source§impl Serialize for BaseTransaction
impl Serialize for BaseTransaction
impl StructuralPartialEq for BaseTransaction
Auto Trait Implementations§
impl !Freeze for BaseTransaction
impl RefUnwindSafe for BaseTransaction
impl Send for BaseTransaction
impl Sync for BaseTransaction
impl Unpin for BaseTransaction
impl UnwindSafe for BaseTransaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more