pub enum TxEip4844Variant {
TxEip4844(TxEip4844),
TxEip4844WithSidecar(TxEip4844WithSidecar),
}
Expand description
A transaction with blob hashes and max blob fee. It can either be a standalone transaction, mainly seen when retrieving historical transactions, or a transaction with a sidecar, which is used when submitting a transaction to the network and when receiving and sending transactions during the gossip stage.
Variants§
TxEip4844(TxEip4844)
A standalone transaction with blob hashes and max blob fee.
TxEip4844WithSidecar(TxEip4844WithSidecar)
A transaction with a sidecar, which contains the blob data, commitments, and proofs.
Implementations§
source§impl TxEip4844Variant
impl TxEip4844Variant
sourcepub fn validate(
&self,
proof_settings: &KzgSettings,
) -> Result<(), BlobTransactionValidationError>
Available on crate feature kzg
only.
pub fn validate( &self, proof_settings: &KzgSettings, ) -> Result<(), BlobTransactionValidationError>
kzg
only.Verifies that the transaction’s blob data, commitments, and proofs are all valid.
See also TxEip4844::validate_blob
Trait Implementations§
source§impl Clone for TxEip4844Variant
impl Clone for TxEip4844Variant
source§fn clone(&self) -> TxEip4844Variant
fn clone(&self) -> TxEip4844Variant
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TxEip4844Variant
impl Debug for TxEip4844Variant
source§impl<'de> Deserialize<'de> for TxEip4844Variant
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for TxEip4844Variant
serde
only.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>,
source§impl From<(TxEip4844, BlobTransactionSidecar)> for TxEip4844Variant
impl From<(TxEip4844, BlobTransactionSidecar)> for TxEip4844Variant
source§fn from((tx, sidecar): (TxEip4844, BlobTransactionSidecar)) -> Self
fn from((tx, sidecar): (TxEip4844, BlobTransactionSidecar)) -> Self
source§impl From<TxEip4844> for TxEip4844Variant
impl From<TxEip4844> for TxEip4844Variant
source§impl From<TxEip4844Variant> for TypedTransaction
impl From<TxEip4844Variant> for TypedTransaction
source§fn from(tx: TxEip4844Variant) -> Self
fn from(tx: TxEip4844Variant) -> Self
source§impl From<TxEip4844WithSidecar> for TxEip4844Variant
impl From<TxEip4844WithSidecar> for TxEip4844Variant
source§fn from(tx: TxEip4844WithSidecar) -> Self
fn from(tx: TxEip4844WithSidecar) -> Self
source§impl Hash for TxEip4844Variant
impl Hash for TxEip4844Variant
source§impl PartialEq for TxEip4844Variant
impl PartialEq for TxEip4844Variant
source§fn eq(&self, other: &TxEip4844Variant) -> bool
fn eq(&self, other: &TxEip4844Variant) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TxEip4844Variant
impl Serialize for TxEip4844Variant
source§impl SignableTransaction<Signature<Signature<Secp256k1>>> for TxEip4844Variant
impl SignableTransaction<Signature<Signature<Secp256k1>>> for TxEip4844Variant
source§fn set_chain_id(&mut self, chain_id: ChainId)
fn set_chain_id(&mut self, chain_id: ChainId)
chain_id
. Read moresource§fn encode_for_signing(&self, out: &mut dyn BufMut)
fn encode_for_signing(&self, out: &mut dyn BufMut)
source§fn payload_len_for_signature(&self) -> usize
fn payload_len_for_signature(&self) -> usize
source§fn into_signed(self, signature: Signature) -> Signed<Self>
fn into_signed(self, signature: Signature) -> Signed<Self>
source§fn use_eip155(&self) -> bool
fn use_eip155(&self) -> bool
source§fn set_chain_id_checked(&mut self, chain_id: ChainId) -> bool
fn set_chain_id_checked(&mut self, chain_id: ChainId) -> bool
chain_id
if it is not already set. Checks that the provided chain_id
matches the
existing chain_id
if it is already set, returning false
if they do not match.source§fn encoded_for_signing(&self) -> Vec<u8> ⓘ
fn encoded_for_signing(&self) -> Vec<u8> ⓘ
signature_hash
. Read moresource§fn signature_hash(&self) -> B256
fn signature_hash(&self) -> B256
source§impl Transaction for TxEip4844Variant
impl Transaction for TxEip4844Variant
impl Eq for TxEip4844Variant
impl StructuralPartialEq for TxEip4844Variant
Auto Trait Implementations§
impl !Freeze for TxEip4844Variant
impl RefUnwindSafe for TxEip4844Variant
impl Send for TxEip4844Variant
impl Sync for TxEip4844Variant
impl Unpin for TxEip4844Variant
impl UnwindSafe for TxEip4844Variant
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> 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 moreimpl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 304 bytes
Size for each variant:
TxEip4844
: 224 bytesTxEip4844WithSidecar
: 304 bytes