Trait reth::rpc::api::servers::eth::helpers::transaction::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§
sourcefn 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,
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