pub trait Typed2718 {
// Required method
fn ty(&self) -> u8;
// Provided methods
fn is_type(&self, ty: u8) -> bool { ... }
fn is_legacy(&self) -> bool { ... }
fn is_eip2930(&self) -> bool { ... }
fn is_eip1559(&self) -> bool { ... }
fn is_eip4844(&self) -> bool { ... }
fn is_eip7702(&self) -> bool { ... }
}
Available on crate feature
network
only.Expand description
A trait that helps to determine the type of the transaction.
Required Methods§
Provided Methods§
Sourcefn is_eip2930(&self) -> bool
fn is_eip2930(&self) -> bool
Returns true if the type is an EIP-2930 transaction.
Sourcefn is_eip1559(&self) -> bool
fn is_eip1559(&self) -> bool
Returns true if the type is an EIP-1559 transaction.
Sourcefn is_eip4844(&self) -> bool
fn is_eip4844(&self) -> bool
Returns true if the type is an EIP-4844 transaction.
Sourcefn is_eip7702(&self) -> bool
fn is_eip7702(&self) -> bool
Returns true if the type is an EIP-7702 transaction.
Implementations on Foreign Types§
Source§impl<T> Typed2718 for WithOtherFields<T>where
T: Typed2718,
Available on crate feature serde
only.
impl<T> Typed2718 for WithOtherFields<T>where
T: Typed2718,
Available on crate feature
serde
only.