pub enum EthereumTxEnvelope<Eip4844> {
Legacy(Signed<TxLegacy>),
Eip2930(Signed<TxEip2930>),
Eip1559(Signed<TxEip1559>),
Eip4844(Signed<Eip4844>),
Eip7702(Signed<TxEip7702>),
}
Expand description
The Ethereum EIP-2718 Transaction Envelope.
§Note:
This enum distinguishes between tagged and untagged legacy transactions, as
the in-protocol merkle tree may commit to EITHER 0-prefixed or raw.
Therefore we must ensure that encoding returns the precise byte-array that
was decoded, preserving the presence or absence of the TransactionType
flag.
Variants§
Legacy(Signed<TxLegacy>)
An untagged TxLegacy
.
Eip2930(Signed<TxEip2930>)
A TxEip2930
tagged with type 1.
Eip1559(Signed<TxEip1559>)
A TxEip1559
tagged with type 2.
Eip4844(Signed<Eip4844>)
A TxEip4844 tagged with type 3. An EIP-4844 transaction has two network representations: 1 - The transaction itself, which is a regular RLP-encoded transaction and used to retrieve historical transactions..
2 - The transaction with a sidecar, which is the form used to send transactions to the network.
Eip7702(Signed<TxEip7702>)
A TxEip7702
tagged with type 4.
Implementations§
Source§impl<T: Encodable7594> EthereumTxEnvelope<TxEip4844Variant<T>>
impl<T: Encodable7594> EthereumTxEnvelope<TxEip4844Variant<T>>
Sourcepub fn try_into_pooled(
self,
) -> Result<EthereumTxEnvelope<TxEip4844WithSidecar<T>>, ValueError<Self>>
pub fn try_into_pooled( self, ) -> Result<EthereumTxEnvelope<TxEip4844WithSidecar<T>>, ValueError<Self>>
Attempts to convert the envelope into the pooled variant.
Returns an error if the envelope’s variant is incompatible with the pooled format:
crate::TxEip4844
without the sidecar.
Source§impl EthereumTxEnvelope<TxEip4844>
impl EthereumTxEnvelope<TxEip4844>
Sourcepub fn try_into_pooled<T>(
self,
) -> Result<EthereumTxEnvelope<TxEip4844WithSidecar<T>>, ValueError<Self>>
pub fn try_into_pooled<T>( self, ) -> Result<EthereumTxEnvelope<TxEip4844WithSidecar<T>>, ValueError<Self>>
Attempts to convert the envelope into the pooled variant.
Returns an error if the envelope’s variant is incompatible with the pooled format:
crate::TxEip4844
without the sidecar.
Sourcepub fn try_into_pooled_eip4844<T>(
self,
sidecar: T,
) -> Result<EthereumTxEnvelope<TxEip4844WithSidecar<T>>, ValueError<Self>>
pub fn try_into_pooled_eip4844<T>( self, sidecar: T, ) -> Result<EthereumTxEnvelope<TxEip4844WithSidecar<T>>, ValueError<Self>>
Converts from an EIP-4844 transaction to a EthereumTxEnvelope<TxEip4844WithSidecar<T>>
with the given sidecar.
Returns an Err
containing the original EthereumTxEnvelope
if the transaction is not an
EIP-4844 variant.
Source§impl<T> EthereumTxEnvelope<T>
impl<T> EthereumTxEnvelope<T>
Sourcepub fn new_unchecked(
transaction: EthereumTypedTransaction<T>,
signature: Signature,
hash: B256,
) -> Selfwhere
T: RlpEcdsaEncodableTx,
pub fn new_unchecked(
transaction: EthereumTypedTransaction<T>,
signature: Signature,
hash: B256,
) -> Selfwhere
T: RlpEcdsaEncodableTx,
Creates a new signed transaction from the given transaction, signature and hash.
Caution: This assumes the given hash is the correct transaction hash.
Sourcepub fn new(
transaction: EthereumTypedTransaction<T>,
signature: Signature,
hash: B256,
) -> Selfwhere
T: RlpEcdsaEncodableTx,
👎Deprecated: Use new_unchecked() instead
pub fn new(
transaction: EthereumTypedTransaction<T>,
signature: Signature,
hash: B256,
) -> Selfwhere
T: RlpEcdsaEncodableTx,
Creates a new signed transaction from the given transaction, signature and hash.
Caution: This assumes the given hash is the correct transaction hash.
Sourcepub fn new_unhashed(
transaction: EthereumTypedTransaction<T>,
signature: Signature,
) -> Selfwhere
T: RlpEcdsaEncodableTx + SignableTransaction<Signature>,
pub fn new_unhashed(
transaction: EthereumTypedTransaction<T>,
signature: Signature,
) -> Selfwhere
T: RlpEcdsaEncodableTx + SignableTransaction<Signature>,
Creates a new signed transaction from the given typed transaction and signature without the hash.
Note: this only calculates the hash on the first EthereumTxEnvelope::hash
call.
Sourcepub fn into_typed_transaction(self) -> EthereumTypedTransaction<T>where
T: RlpEcdsaEncodableTx,
pub fn into_typed_transaction(self) -> EthereumTypedTransaction<T>where
T: RlpEcdsaEncodableTx,
Consumes the type, removes the signature and returns the transaction.
Source§impl<Eip4844> EthereumTxEnvelope<Eip4844>
impl<Eip4844> EthereumTxEnvelope<Eip4844>
Sourcepub fn map_eip4844<U>(
self,
f: impl FnMut(Eip4844) -> U,
) -> EthereumTxEnvelope<U>
pub fn map_eip4844<U>( self, f: impl FnMut(Eip4844) -> U, ) -> EthereumTxEnvelope<U>
Converts the EIP-4844 variant of this transaction with the given closure.
This is intended to convert between the EIP-4844 variants, specifically for stripping away non consensus data (blob sidecar data).
Sourcepub fn into_signed(self) -> Signed<EthereumTypedTransaction<Eip4844>>where
EthereumTypedTransaction<Eip4844>: From<Eip4844>,
pub fn into_signed(self) -> Signed<EthereumTypedTransaction<Eip4844>>where
EthereumTypedTransaction<Eip4844>: From<Eip4844>,
Consumes the type into a Signed
Source§impl<Eip4844: RlpEcdsaEncodableTx> EthereumTxEnvelope<Eip4844>
impl<Eip4844: RlpEcdsaEncodableTx> EthereumTxEnvelope<Eip4844>
Sourcepub const fn is_eip2930(&self) -> bool
pub const fn is_eip2930(&self) -> bool
Returns true if the transaction is an EIP-2930 transaction.
Sourcepub const fn is_eip1559(&self) -> bool
pub const fn is_eip1559(&self) -> bool
Returns true if the transaction is an EIP-1559 transaction.
Sourcepub const fn is_eip4844(&self) -> bool
pub const fn is_eip4844(&self) -> bool
Returns true if the transaction is an EIP-4844 transaction.
Sourcepub const fn is_eip7702(&self) -> bool
pub const fn is_eip7702(&self) -> bool
Returns true if the transaction is an EIP-7702 transaction.
Sourcepub const fn is_replay_protected(&self) -> bool
pub const fn is_replay_protected(&self) -> bool
Returns true if the transaction is replay protected.
All non-legacy transactions are replay protected, as the chain id is
included in the transaction body. Legacy transactions are considered
replay protected if the v
value is not 27 or 28, according to the
rules of EIP-155.
Sourcepub const fn as_legacy(&self) -> Option<&Signed<TxLegacy>>
pub const fn as_legacy(&self) -> Option<&Signed<TxLegacy>>
Returns the TxLegacy
variant if the transaction is a legacy transaction.
Sourcepub const fn as_eip2930(&self) -> Option<&Signed<TxEip2930>>
pub const fn as_eip2930(&self) -> Option<&Signed<TxEip2930>>
Returns the TxEip2930
variant if the transaction is an EIP-2930 transaction.
Sourcepub const fn as_eip1559(&self) -> Option<&Signed<TxEip1559>>
pub const fn as_eip1559(&self) -> Option<&Signed<TxEip1559>>
Returns the TxEip1559
variant if the transaction is an EIP-1559 transaction.
Sourcepub const fn as_eip4844(&self) -> Option<&Signed<Eip4844>>
pub const fn as_eip4844(&self) -> Option<&Signed<Eip4844>>
Returns the TxEip4844Variant
variant if the transaction is an EIP-4844 transaction.
Sourcepub const fn as_eip7702(&self) -> Option<&Signed<TxEip7702>>
pub const fn as_eip7702(&self) -> Option<&Signed<TxEip7702>>
Returns the TxEip7702
variant if the transaction is an EIP-7702 transaction.
Sourcepub fn signature_hash(&self) -> B256where
Eip4844: SignableTransaction<Signature>,
pub fn signature_hash(&self) -> B256where
Eip4844: SignableTransaction<Signature>,
Calculate the signing hash for the transaction.
Sourcepub fn eip2718_encoded_length(&self) -> usize
pub fn eip2718_encoded_length(&self) -> usize
Return the length of the inner txn, including type byte length
Source§impl<T: Encodable7594> EthereumTxEnvelope<TxEip4844WithSidecar<T>>
impl<T: Encodable7594> EthereumTxEnvelope<TxEip4844WithSidecar<T>>
Sourcepub fn into_envelope(self) -> EthereumTxEnvelope<TxEip4844Variant<T>>
pub fn into_envelope(self) -> EthereumTxEnvelope<TxEip4844Variant<T>>
Converts the transaction into EthereumTxEnvelope<TxEip4844Variant<T>>
.
Trait Implementations§
Source§impl<Eip4844: Clone> Clone for EthereumTxEnvelope<Eip4844>
impl<Eip4844: Clone> Clone for EthereumTxEnvelope<Eip4844>
Source§fn clone(&self) -> EthereumTxEnvelope<Eip4844>
fn clone(&self) -> EthereumTxEnvelope<Eip4844>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<Eip4844: Debug> Debug for EthereumTxEnvelope<Eip4844>
impl<Eip4844: Debug> Debug for EthereumTxEnvelope<Eip4844>
Source§impl<Eip4844> Decodable for EthereumTxEnvelope<Eip4844>where
Signed<TxLegacy>: Decodable2718,
Signed<TxEip2930>: Decodable2718,
Signed<TxEip1559>: Decodable2718,
Signed<Eip4844>: Decodable2718,
Signed<TxEip7702>: Decodable2718,
impl<Eip4844> Decodable for EthereumTxEnvelope<Eip4844>where
Signed<TxLegacy>: Decodable2718,
Signed<TxEip2930>: Decodable2718,
Signed<TxEip1559>: Decodable2718,
Signed<Eip4844>: Decodable2718,
Signed<TxEip7702>: Decodable2718,
Source§impl<Eip4844> Decodable2718 for EthereumTxEnvelope<Eip4844>where
Signed<TxLegacy>: Decodable2718,
Signed<TxEip2930>: Decodable2718,
Signed<TxEip1559>: Decodable2718,
Signed<Eip4844>: Decodable2718,
Signed<TxEip7702>: Decodable2718,
impl<Eip4844> Decodable2718 for EthereumTxEnvelope<Eip4844>where
Signed<TxLegacy>: Decodable2718,
Signed<TxEip2930>: Decodable2718,
Signed<TxEip1559>: Decodable2718,
Signed<Eip4844>: Decodable2718,
Signed<TxEip7702>: Decodable2718,
Source§fn typed_decode(ty: u8, buf: &mut &[u8]) -> Eip2718Result<Self>
fn typed_decode(ty: u8, buf: &mut &[u8]) -> Eip2718Result<Self>
Source§fn fallback_decode(buf: &mut &[u8]) -> Eip2718Result<Self>
fn fallback_decode(buf: &mut &[u8]) -> Eip2718Result<Self>
Source§fn extract_type_byte(buf: &mut &[u8]) -> Option<u8>
fn extract_type_byte(buf: &mut &[u8]) -> Option<u8>
Source§fn decode_2718(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
fn decode_2718(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
Source§fn decode_2718_exact(bytes: &[u8]) -> Result<Self, Eip2718Error>
fn decode_2718_exact(bytes: &[u8]) -> Result<Self, Eip2718Error>
Source§fn network_decode(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
fn network_decode(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
Source§impl<'de, Eip4844> Deserialize<'de> for EthereumTxEnvelope<Eip4844>where
EthereumTxEnvelope<Eip4844>: Clone,
Signed<TxLegacy>: Serialize + DeserializeOwned,
Signed<TxEip2930>: Serialize + DeserializeOwned,
Signed<TxEip1559>: Serialize + DeserializeOwned,
Signed<Eip4844>: Serialize + DeserializeOwned,
Signed<TxEip7702>: Serialize + DeserializeOwned,
impl<'de, Eip4844> Deserialize<'de> for EthereumTxEnvelope<Eip4844>where
EthereumTxEnvelope<Eip4844>: Clone,
Signed<TxLegacy>: Serialize + DeserializeOwned,
Signed<TxEip2930>: Serialize + DeserializeOwned,
Signed<TxEip1559>: Serialize + DeserializeOwned,
Signed<Eip4844>: Serialize + DeserializeOwned,
Signed<TxEip7702>: Serialize + DeserializeOwned,
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl<Eip4844> Encodable for EthereumTxEnvelope<Eip4844>where
Signed<TxLegacy>: Encodable2718,
Signed<TxEip2930>: Encodable2718,
Signed<TxEip1559>: Encodable2718,
Signed<Eip4844>: Encodable2718,
Signed<TxEip7702>: Encodable2718,
impl<Eip4844> Encodable for EthereumTxEnvelope<Eip4844>where
Signed<TxLegacy>: Encodable2718,
Signed<TxEip2930>: Encodable2718,
Signed<TxEip1559>: Encodable2718,
Signed<Eip4844>: Encodable2718,
Signed<TxEip7702>: Encodable2718,
Source§impl<Eip4844> Encodable2718 for EthereumTxEnvelope<Eip4844>where
Signed<TxLegacy>: Encodable2718,
Signed<TxEip2930>: Encodable2718,
Signed<TxEip1559>: Encodable2718,
Signed<Eip4844>: Encodable2718,
Signed<TxEip7702>: Encodable2718,
impl<Eip4844> Encodable2718 for EthereumTxEnvelope<Eip4844>where
Signed<TxLegacy>: Encodable2718,
Signed<TxEip2930>: Encodable2718,
Signed<TxEip1559>: Encodable2718,
Signed<Eip4844>: Encodable2718,
Signed<TxEip7702>: Encodable2718,
Source§fn encode_2718_len(&self) -> usize
fn encode_2718_len(&self) -> usize
Source§fn encode_2718(&self, out: &mut dyn BufMut)
fn encode_2718(&self, out: &mut dyn BufMut)
Source§fn trie_hash(&self) -> B256
fn trie_hash(&self) -> B256
Source§fn encoded_2718(&self) -> Vec<u8> ⓘ
fn encoded_2718(&self) -> Vec<u8> ⓘ
Source§fn into_encoded(self) -> WithEncoded<Self>
fn into_encoded(self) -> WithEncoded<Self>
WithEncoded
wrapper. Read moreSource§fn network_len(&self) -> usize
fn network_len(&self) -> usize
Source§fn network_encode(&self, out: &mut dyn BufMut)
fn network_encode(&self, out: &mut dyn BufMut)
Source§impl<Eip4844> From<(EthereumTypedTransaction<Eip4844>, Signature)> for EthereumTxEnvelope<Eip4844>where
Eip4844: RlpEcdsaEncodableTx + SignableTransaction<Signature>,
impl<Eip4844> From<(EthereumTypedTransaction<Eip4844>, Signature)> for EthereumTxEnvelope<Eip4844>where
Eip4844: RlpEcdsaEncodableTx + SignableTransaction<Signature>,
Source§fn from(value: (EthereumTypedTransaction<Eip4844>, Signature)) -> Self
fn from(value: (EthereumTypedTransaction<Eip4844>, Signature)) -> Self
Source§impl<Eip4844> From<EthereumTxEnvelope<Eip4844>> for EthereumTypedTransaction<Eip4844>
impl<Eip4844> From<EthereumTxEnvelope<Eip4844>> for EthereumTypedTransaction<Eip4844>
Source§fn from(envelope: EthereumTxEnvelope<Eip4844>) -> Self
fn from(envelope: EthereumTxEnvelope<Eip4844>) -> Self
Source§impl<Eip4844, Tx> From<EthereumTxEnvelope<Eip4844>> for Extended<EthereumTxEnvelope<Eip4844>, Tx>
impl<Eip4844, Tx> From<EthereumTxEnvelope<Eip4844>> for Extended<EthereumTxEnvelope<Eip4844>, Tx>
Source§fn from(value: EthereumTxEnvelope<Eip4844>) -> Self
fn from(value: EthereumTxEnvelope<Eip4844>) -> Self
Source§impl<Eip4844: RlpEcdsaEncodableTx> From<EthereumTxEnvelope<Eip4844>> for Signed<EthereumTypedTransaction<Eip4844>>where
EthereumTypedTransaction<Eip4844>: From<Eip4844>,
impl<Eip4844: RlpEcdsaEncodableTx> From<EthereumTxEnvelope<Eip4844>> for Signed<EthereumTypedTransaction<Eip4844>>where
EthereumTypedTransaction<Eip4844>: From<Eip4844>,
Source§fn from(value: EthereumTxEnvelope<Eip4844>) -> Self
fn from(value: EthereumTxEnvelope<Eip4844>) -> Self
Source§impl<Eip4844, T> From<EthereumTxEnvelope<Eip4844>> for WithOtherFields<T>where
T: From<EthereumTxEnvelope<Eip4844>>,
impl<Eip4844, T> From<EthereumTxEnvelope<Eip4844>> for WithOtherFields<T>where
T: From<EthereumTxEnvelope<Eip4844>>,
Source§fn from(value: EthereumTxEnvelope<Eip4844>) -> Self
fn from(value: EthereumTxEnvelope<Eip4844>) -> Self
Source§impl<T> From<EthereumTxEnvelope<TxEip4844>> for EthereumTxEnvelope<TxEip4844Variant<T>>
impl<T> From<EthereumTxEnvelope<TxEip4844>> for EthereumTxEnvelope<TxEip4844Variant<T>>
Source§fn from(value: EthereumTxEnvelope<TxEip4844>) -> Self
fn from(value: EthereumTxEnvelope<TxEip4844>) -> Self
Source§impl<T> From<EthereumTxEnvelope<TxEip4844Variant<T>>> for EthereumTxEnvelope<TxEip4844>
impl<T> From<EthereumTxEnvelope<TxEip4844Variant<T>>> for EthereumTxEnvelope<TxEip4844>
Source§fn from(value: EthereumTxEnvelope<TxEip4844Variant<T>>) -> Self
fn from(value: EthereumTxEnvelope<TxEip4844Variant<T>>) -> Self
Source§impl<T> From<EthereumTxEnvelope<TxEip4844WithSidecar<T>>> for EthereumTxEnvelope<TxEip4844>
impl<T> From<EthereumTxEnvelope<TxEip4844WithSidecar<T>>> for EthereumTxEnvelope<TxEip4844>
Source§fn from(value: EthereumTxEnvelope<TxEip4844WithSidecar<T>>) -> Self
fn from(value: EthereumTxEnvelope<TxEip4844WithSidecar<T>>) -> Self
Source§impl<T: Encodable7594> From<EthereumTxEnvelope<TxEip4844WithSidecar<T>>> for EthereumTxEnvelope<TxEip4844Variant<T>>
impl<T: Encodable7594> From<EthereumTxEnvelope<TxEip4844WithSidecar<T>>> for EthereumTxEnvelope<TxEip4844Variant<T>>
Source§fn from(tx: EthereumTxEnvelope<TxEip4844WithSidecar<T>>) -> Self
fn from(tx: EthereumTxEnvelope<TxEip4844WithSidecar<T>>) -> Self
Source§impl<T, Eip4844> From<Signed<T>> for EthereumTxEnvelope<Eip4844>where
EthereumTypedTransaction<Eip4844>: From<T>,
T: RlpEcdsaEncodableTx,
impl<T, Eip4844> From<Signed<T>> for EthereumTxEnvelope<Eip4844>where
EthereumTypedTransaction<Eip4844>: From<T>,
T: RlpEcdsaEncodableTx,
Source§impl<Eip4844> Hash for EthereumTxEnvelope<Eip4844>where
Self: Encodable2718,
impl<Eip4844> Hash for EthereumTxEnvelope<Eip4844>where
Self: Encodable2718,
Source§impl<Eip4844> IsTyped2718 for EthereumTxEnvelope<Eip4844>
impl<Eip4844> IsTyped2718 for EthereumTxEnvelope<Eip4844>
Source§impl<Eip4844> PartialEq for EthereumTxEnvelope<Eip4844>
impl<Eip4844> PartialEq for EthereumTxEnvelope<Eip4844>
Source§impl<Eip4844> Serialize for EthereumTxEnvelope<Eip4844>where
EthereumTxEnvelope<Eip4844>: Clone,
Signed<TxLegacy>: Serialize + DeserializeOwned,
Signed<TxEip2930>: Serialize + DeserializeOwned,
Signed<TxEip1559>: Serialize + DeserializeOwned,
Signed<Eip4844>: Serialize + DeserializeOwned,
Signed<TxEip7702>: Serialize + DeserializeOwned,
impl<Eip4844> Serialize for EthereumTxEnvelope<Eip4844>where
EthereumTxEnvelope<Eip4844>: Clone,
Signed<TxLegacy>: Serialize + DeserializeOwned,
Signed<TxEip2930>: Serialize + DeserializeOwned,
Signed<TxEip1559>: Serialize + DeserializeOwned,
Signed<Eip4844>: Serialize + DeserializeOwned,
Signed<TxEip7702>: Serialize + DeserializeOwned,
Source§impl<Eip4844> Transaction for EthereumTxEnvelope<Eip4844>where
Self: Debug,
Signed<TxLegacy>: Transaction,
Signed<TxEip2930>: Transaction,
Signed<TxEip1559>: Transaction,
Signed<Eip4844>: Transaction,
Signed<TxEip7702>: Transaction,
impl<Eip4844> Transaction for EthereumTxEnvelope<Eip4844>where
Self: Debug,
Signed<TxLegacy>: Transaction,
Signed<TxEip2930>: Transaction,
Signed<TxEip1559>: Transaction,
Signed<Eip4844>: Transaction,
Signed<TxEip7702>: Transaction,
Source§fn max_fee_per_gas(&self) -> u128
fn max_fee_per_gas(&self) -> u128
Source§fn max_priority_fee_per_gas(&self) -> Option<u128>
fn max_priority_fee_per_gas(&self) -> Option<u128>
Source§fn max_fee_per_blob_gas(&self) -> Option<u128>
fn max_fee_per_blob_gas(&self) -> Option<u128>
Source§fn priority_fee_or_price(&self) -> u128
fn priority_fee_or_price(&self) -> u128
Source§fn effective_gas_price(&self, base_fee: Option<u64>) -> u128
fn effective_gas_price(&self, base_fee: Option<u64>) -> u128
Source§fn is_dynamic_fee(&self) -> bool
fn is_dynamic_fee(&self) -> bool
true
if the transaction supports dynamic fees.Source§fn is_create(&self) -> bool
fn is_create(&self) -> bool
kind
as it copies the 21-byte
TxKind
for this simple check. A proper implementation shouldn’t allocate.Source§fn access_list(&self) -> Option<&AccessList>
fn access_list(&self) -> Option<&AccessList>
access_list
for the particular transaction type. Returns None
for
older transaction types.Source§fn blob_versioned_hashes(&self) -> Option<&[B256]>
fn blob_versioned_hashes(&self) -> Option<&[B256]>
None
.SignedAuthorization
list of the transaction. Read moreSource§fn effective_tip_per_gas(&self, base_fee: u64) -> Option<u128>
fn effective_tip_per_gas(&self, base_fee: u64) -> Option<u128>
Source§fn to(&self) -> Option<Address>
fn to(&self) -> Option<Address>
Source§fn function_selector(&self) -> Option<&Selector>
fn function_selector(&self) -> Option<&Selector>
Source§fn blob_count(&self) -> Option<u64>
fn blob_count(&self) -> Option<u64>
Source§fn blob_gas_used(&self) -> Option<u64>
fn blob_gas_used(&self) -> Option<u64>
SignedAuthorization
in this transactions Read moreSource§impl<Eip4844> TransactionEnvelope for EthereumTxEnvelope<Eip4844>where
Self: Transaction,
impl<Eip4844> TransactionEnvelope for EthereumTxEnvelope<Eip4844>where
Self: Transaction,
Source§impl<T: Encodable7594> TryFrom<EthereumTxEnvelope<TxEip4844>> for EthereumTxEnvelope<TxEip4844WithSidecar<T>>
impl<T: Encodable7594> TryFrom<EthereumTxEnvelope<TxEip4844>> for EthereumTxEnvelope<TxEip4844WithSidecar<T>>
Source§type Error = ValueError<EthereumTxEnvelope<TxEip4844>>
type Error = ValueError<EthereumTxEnvelope<TxEip4844>>
Source§impl<T: Encodable7594> TryFrom<EthereumTxEnvelope<TxEip4844Variant<T>>> for EthereumTxEnvelope<TxEip4844WithSidecar<T>>
impl<T: Encodable7594> TryFrom<EthereumTxEnvelope<TxEip4844Variant<T>>> for EthereumTxEnvelope<TxEip4844WithSidecar<T>>
Source§type Error = ValueError<EthereumTxEnvelope<TxEip4844Variant<T>>>
type Error = ValueError<EthereumTxEnvelope<TxEip4844Variant<T>>>
Source§fn try_from(
value: EthereumTxEnvelope<TxEip4844Variant<T>>,
) -> Result<Self, Self::Error>
fn try_from( value: EthereumTxEnvelope<TxEip4844Variant<T>>, ) -> Result<Self, Self::Error>
Source§impl<T: Encodable7594> TryFrom<Signed<TxEip4844Variant<T>>> for EthereumTxEnvelope<TxEip4844WithSidecar<T>>
impl<T: Encodable7594> TryFrom<Signed<TxEip4844Variant<T>>> for EthereumTxEnvelope<TxEip4844WithSidecar<T>>
Source§type Error = ValueError<Signed<TxEip4844Variant<T>>>
type Error = ValueError<Signed<TxEip4844Variant<T>>>
Source§impl<Eip4844> Typed2718 for EthereumTxEnvelope<Eip4844>
impl<Eip4844> Typed2718 for EthereumTxEnvelope<Eip4844>
Source§fn is_eip2930(&self) -> bool
fn is_eip2930(&self) -> bool
Source§fn is_eip1559(&self) -> bool
fn is_eip1559(&self) -> bool
Source§fn is_eip4844(&self) -> bool
fn is_eip4844(&self) -> bool
Source§fn is_eip7702(&self) -> bool
fn is_eip7702(&self) -> bool
impl<Eip4844> Eq for EthereumTxEnvelope<Eip4844>
Auto Trait Implementations§
impl<Eip4844> !Freeze for EthereumTxEnvelope<Eip4844>
impl<Eip4844> RefUnwindSafe for EthereumTxEnvelope<Eip4844>where
Eip4844: RefUnwindSafe,
impl<Eip4844> Send for EthereumTxEnvelope<Eip4844>where
Eip4844: Send,
impl<Eip4844> Sync for EthereumTxEnvelope<Eip4844>where
Eip4844: Sync,
impl<Eip4844> Unpin for EthereumTxEnvelope<Eip4844>where
Eip4844: Unpin,
impl<Eip4844> UnwindSafe for EthereumTxEnvelope<Eip4844>where
Eip4844: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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> ⓘ
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> ⓘ
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