Trait reth::core::rpc::api::servers::eth::RawTransactionForwarder

source ·
pub trait RawTransactionForwarder: Debug + Send + Sync + 'static {
    // Required method
    fn forward_raw_transaction<'life0, 'life1, 'async_trait>(
        &'life0 self,
        raw: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<(), EthApiError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}
Expand description

A trait that allows for forwarding raw transactions.

For example to a sequencer.

Required Methods§

source

fn forward_raw_transaction<'life0, 'life1, 'async_trait>( &'life0 self, raw: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<(), EthApiError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Forwards raw transaction bytes for eth_sendRawTransaction

Implementations on Foreign Types§

source§

impl RawTransactionForwarder for SequencerClient

source§

fn forward_raw_transaction<'life0, 'life1, 'async_trait>( &'life0 self, tx: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<(), EthApiError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, SequencerClient: 'async_trait,

Implementors§