pub trait MoonbeamFinalityApiServer: Sized + Send + Sync + 'static {
// Required methods
fn is_block_finalized<'life0, 'async_trait>(
&'life0 self,
block_hash: H256
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn is_tx_finalized<'life0, 'async_trait>(
&'life0 self,
tx_hash: H256
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_frontier_sync_block_range<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = RpcResult<(H256, H256)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the MoonbeamFinalityApi
RPC API.
Required Methods§
sourcefn is_block_finalized<'life0, 'async_trait>(
&'life0 self,
block_hash: H256
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_block_finalized<'life0, 'async_trait>(
&'life0 self,
block_hash: H256
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Reports whether a Substrate or Ethereum block is finalized. Returns false if the block is not found.
Provided Methods§
Object Safety§
This trait is not object safe.