reth_primitives::transaction

Type Alias PooledTransactionsElementEcRecovered

Source
pub type PooledTransactionsElementEcRecovered<T = PooledTransaction> = RecoveredTx<T>;
Expand description

A signed pooled transaction with recovered signer.

Aliased Type§

struct PooledTransactionsElementEcRecovered<T = PooledTransaction> { /* private fields */ }

Implementations§

Source§

impl PooledTransactionsElementEcRecovered

Source

pub fn into_ecrecovered_transaction(self) -> RecoveredTx

Transform back to RecoveredTx

Source

pub fn try_from_blob_transaction( tx: RecoveredTx, sidecar: BlobTransactionSidecar, ) -> Result<Self, RecoveredTx>

Converts from an EIP-4844 RecoveredTx to a PooledTransactionsElementEcRecovered with the given sidecar.

Returns the transaction is not an EIP-4844 transaction.

Trait Implementations§

Source§

impl TryFrom<RecoveredTx> for PooledTransactionsElementEcRecovered

Converts a Recovered into a PooledTransactionsElementEcRecovered.

Source§

type Error = TransactionConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(tx: RecoveredTx) -> Result<Self, Self::Error>

Performs the conversion.

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.