pub trait TxPoolApiServer<T>:
Sized
+ Send
+ Sync
+ 'staticwhere
T: RpcObject,{
// Required methods
fn txpool_status(
&self,
) -> impl Future<Output = Result<TxpoolStatus, ErrorObject<'static>>> + Send;
fn txpool_inspect(
&self,
) -> impl Future<Output = Result<TxpoolInspect, ErrorObject<'static>>> + Send;
fn txpool_content_from(
&self,
from: Address,
) -> impl Future<Output = Result<TxpoolContentFrom<T>, ErrorObject<'static>>> + Send;
fn txpool_content(
&self,
) -> impl Future<Output = Result<TxpoolContent<T>, ErrorObject<'static>>> + Send;
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where T: Send + Sync + 'static + Clone + Serialize { ... }
}Expand description
Server trait implementation for the TxPoolApi RPC API.
Required Methods§
Sourcefn txpool_status(
&self,
) -> impl Future<Output = Result<TxpoolStatus, ErrorObject<'static>>> + Send
fn txpool_status( &self, ) -> impl Future<Output = Result<TxpoolStatus, ErrorObject<'static>>> + Send
Returns the number of transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
See here for more details
Sourcefn txpool_inspect(
&self,
) -> impl Future<Output = Result<TxpoolInspect, ErrorObject<'static>>> + Send
fn txpool_inspect( &self, ) -> impl Future<Output = Result<TxpoolInspect, ErrorObject<'static>>> + Send
Returns a summary of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
See here for more details
Sourcefn txpool_content_from(
&self,
from: Address,
) -> impl Future<Output = Result<TxpoolContentFrom<T>, ErrorObject<'static>>> + Send
fn txpool_content_from( &self, from: Address, ) -> impl Future<Output = Result<TxpoolContentFrom<T>, ErrorObject<'static>>> + Send
Retrieves the transactions contained within the txpool, returning pending as well as queued transactions of this address, grouped by nonce.
See here for more details
Sourcefn txpool_content(
&self,
) -> impl Future<Output = Result<TxpoolContent<T>, ErrorObject<'static>>> + Send
fn txpool_content( &self, ) -> impl Future<Output = Result<TxpoolContent<T>, ErrorObject<'static>>> + Send
Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
See here for more details
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<Pool, Eth> TxPoolApiServer<<<Eth as RpcConvert>::Network as RpcTypes>::TransactionResponse> for TxPoolApi<Pool, Eth>where
Pool: TransactionPool + 'static,
<Pool as TransactionPool>::Transaction: PoolTransaction,
<<Pool as TransactionPool>::Transaction as PoolTransaction>::Consensus: Transaction,
Eth: RpcConvert,
<Eth as RpcConvert>::Primitives: NodePrimitives<SignedTx = <<Pool as TransactionPool>::Transaction as PoolTransaction>::Consensus>,
impl<Pool, Eth> TxPoolApiServer<<<Eth as RpcConvert>::Network as RpcTypes>::TransactionResponse> for TxPoolApi<Pool, Eth>where
Pool: TransactionPool + 'static,
<Pool as TransactionPool>::Transaction: PoolTransaction,
<<Pool as TransactionPool>::Transaction as PoolTransaction>::Consensus: Transaction,
Eth: RpcConvert,
<Eth as RpcConvert>::Primitives: NodePrimitives<SignedTx = <<Pool as TransactionPool>::Transaction as PoolTransaction>::Consensus>,
Source§async fn txpool_status(&self) -> Result<TxpoolStatus, ErrorObject<'static>>
async fn txpool_status(&self) -> Result<TxpoolStatus, ErrorObject<'static>>
Returns the number of transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only. Ref: Here
Handler for txpool_status
Source§async fn txpool_inspect(&self) -> Result<TxpoolInspect, ErrorObject<'static>>
async fn txpool_inspect(&self) -> Result<TxpoolInspect, ErrorObject<'static>>
Returns a summary of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
See here for more details
Handler for txpool_inspect
Source§async fn txpool_content_from(
&self,
from: Address,
) -> Result<TxpoolContentFrom<<<Eth as RpcConvert>::Network as RpcTypes>::TransactionResponse>, ErrorObject<'static>>
async fn txpool_content_from( &self, from: Address, ) -> Result<TxpoolContentFrom<<<Eth as RpcConvert>::Network as RpcTypes>::TransactionResponse>, ErrorObject<'static>>
Retrieves the transactions contained within the txpool, returning pending as well as queued transactions of this address, grouped by nonce.
See here for more details
Handler for txpool_contentFrom
Source§async fn txpool_content(
&self,
) -> Result<TxpoolContent<<<Eth as RpcConvert>::Network as RpcTypes>::TransactionResponse>, ErrorObject<'static>>
async fn txpool_content( &self, ) -> Result<TxpoolContent<<<Eth as RpcConvert>::Network as RpcTypes>::TransactionResponse>, ErrorObject<'static>>
Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
See here for more details
Handler for txpool_content