pub struct GenericTransaction {Show 18 fields
pub type: TxType,
pub nonce: Option<u64>,
pub to: TxKind,
pub from: Address,
pub gas: Option<u64>,
pub value: U256,
pub gas_price: U256,
pub max_priority_fee_per_gas: Option<u64>,
pub max_fee_per_gas: Option<u64>,
pub max_fee_per_blob_gas: Option<U256>,
pub access_list: Vec<AccessListEntry>,
pub fee_token: Option<Address>,
pub authorization_list: Option<Vec<AuthorizationTupleEntry>>,
pub blob_versioned_hashes: Vec<H256>,
pub wrapper_version: Option<u8>,
pub blobs: Vec<Bytes>,
pub chain_id: Option<u64>,
pub input: Bytes,
}Expand description
Unsigned Transaction struct generic to all types which may not contain all required transaction fields Used to perform gas estimations and access list creation
Fields§
§type: TxType§nonce: Option<u64>§to: TxKind§from: Address§gas: Option<u64>§value: U256§gas_price: U256§max_priority_fee_per_gas: Option<u64>§max_fee_per_gas: Option<u64>§max_fee_per_blob_gas: Option<U256>§access_list: Vec<AccessListEntry>§fee_token: Option<Address>§blob_versioned_hashes: Vec<H256>§wrapper_version: Option<u8>§blobs: Vec<Bytes>§chain_id: Option<u64>§input: BytesTrait Implementations§
Source§impl Clone for GenericTransaction
impl Clone for GenericTransaction
Source§fn clone(&self) -> GenericTransaction
fn clone(&self) -> GenericTransaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GenericTransaction
impl Debug for GenericTransaction
Source§impl Default for GenericTransaction
impl Default for GenericTransaction
Source§fn default() -> GenericTransaction
fn default() -> GenericTransaction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenericTransaction
impl<'de> Deserialize<'de> for GenericTransaction
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<EIP1559Transaction> for GenericTransaction
impl From<EIP1559Transaction> for GenericTransaction
Source§fn from(value: EIP1559Transaction) -> Self
fn from(value: EIP1559Transaction) -> Self
Converts to this type from the input type.
Source§impl From<EIP2930Transaction> for GenericTransaction
impl From<EIP2930Transaction> for GenericTransaction
Source§fn from(value: EIP2930Transaction) -> Self
fn from(value: EIP2930Transaction) -> Self
Converts to this type from the input type.
Source§impl From<EIP4844Transaction> for GenericTransaction
impl From<EIP4844Transaction> for GenericTransaction
Source§fn from(value: EIP4844Transaction) -> Self
fn from(value: EIP4844Transaction) -> Self
Converts to this type from the input type.
Source§impl From<EIP7702Transaction> for GenericTransaction
impl From<EIP7702Transaction> for GenericTransaction
Source§fn from(value: EIP7702Transaction) -> Self
fn from(value: EIP7702Transaction) -> Self
Converts to this type from the input type.
Source§impl From<FeeTokenTransaction> for GenericTransaction
impl From<FeeTokenTransaction> for GenericTransaction
Source§fn from(value: FeeTokenTransaction) -> Self
fn from(value: FeeTokenTransaction) -> Self
Converts to this type from the input type.
Source§impl From<LegacyTransaction> for GenericTransaction
impl From<LegacyTransaction> for GenericTransaction
Source§fn from(value: LegacyTransaction) -> Self
fn from(value: LegacyTransaction) -> Self
Converts to this type from the input type.
Source§impl From<PrivilegedL2Transaction> for GenericTransaction
impl From<PrivilegedL2Transaction> for GenericTransaction
Source§fn from(value: PrivilegedL2Transaction) -> Self
fn from(value: PrivilegedL2Transaction) -> Self
Converts to this type from the input type.
Source§impl From<Transaction> for GenericTransaction
impl From<Transaction> for GenericTransaction
Source§fn from(value: Transaction) -> Self
fn from(value: Transaction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GenericTransaction
impl PartialEq for GenericTransaction
Source§fn eq(&self, other: &GenericTransaction) -> bool
fn eq(&self, other: &GenericTransaction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GenericTransaction
Source§impl TryFrom<GenericTransaction> for EIP1559Transaction
impl TryFrom<GenericTransaction> for EIP1559Transaction
Source§type Error = GenericTransactionError
type Error = GenericTransactionError
The type returned in the event of a conversion error.
Source§impl TryFrom<GenericTransaction> for EIP4844Transaction
impl TryFrom<GenericTransaction> for EIP4844Transaction
Source§type Error = GenericTransactionError
type Error = GenericTransactionError
The type returned in the event of a conversion error.
Source§impl TryFrom<GenericTransaction> for EIP7702Transaction
impl TryFrom<GenericTransaction> for EIP7702Transaction
Source§type Error = GenericTransactionError
type Error = GenericTransactionError
The type returned in the event of a conversion error.
Source§impl TryFrom<GenericTransaction> for PrivilegedL2Transaction
impl TryFrom<GenericTransaction> for PrivilegedL2Transaction
Source§type Error = GenericTransactionError
type Error = GenericTransactionError
The type returned in the event of a conversion error.
Source§impl TryFrom<GenericTransaction> for FeeTokenTransaction
impl TryFrom<GenericTransaction> for FeeTokenTransaction
Source§type Error = GenericTransactionError
type Error = GenericTransactionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !Freeze for GenericTransaction
impl RefUnwindSafe for GenericTransaction
impl Send for GenericTransaction
impl Sync for GenericTransaction
impl Unpin for GenericTransaction
impl UnsafeUnpin for GenericTransaction
impl UnwindSafe for GenericTransaction
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.