Skip to main content

ExplorerApi

Trait ExplorerApi 

Source
pub trait ExplorerApi {
    type BlockDetail: Serialize + Send + Sync + 'static;
    type BlockSummaries: Serialize + Send + Sync + 'static;
    type TransactionDetail: Serialize + Send + Sync + 'static;
    type TransactionSummaries: Serialize + Send + Sync + 'static;
    type ExplorerSummary: Serialize + Send + Sync + 'static;
    type SearchResult: Serialize + Send + Sync + 'static;

    // Required methods
    fn get_block_detail<'life0, 'async_trait>(
        &'life0 self,
        ident: BlockIdent,
    ) -> Pin<Box<dyn Future<Output = Result<Self::BlockDetail>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_block_summaries<'life0, 'async_trait>(
        &'life0 self,
        target: BlockIdent,
        limit: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Self::BlockSummaries>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_transaction_detail<'life0, 'async_trait>(
        &'life0 self,
        ident: TxIdent,
    ) -> Pin<Box<dyn Future<Output = Result<Self::TransactionDetail>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_transaction_summaries<'life0, 'async_trait>(
        &'life0 self,
        target: TxIdent,
        limit: u64,
        filter: TxSummaryFilter,
    ) -> Pin<Box<dyn Future<Output = Result<Self::TransactionSummaries>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_explorer_summary<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Self::ExplorerSummary>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_search_result<'life0, 'async_trait>(
        &'life0 self,
        query: String,
    ) -> Pin<Box<dyn Future<Output = Result<Self::SearchResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn get_block_detail<'life0, 'async_trait>( &'life0 self, ident: BlockIdent, ) -> Pin<Box<dyn Future<Output = Result<Self::BlockDetail>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_block_summaries<'life0, 'async_trait>( &'life0 self, target: BlockIdent, limit: u64, ) -> Pin<Box<dyn Future<Output = Result<Self::BlockSummaries>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_transaction_detail<'life0, 'async_trait>( &'life0 self, ident: TxIdent, ) -> Pin<Box<dyn Future<Output = Result<Self::TransactionDetail>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_transaction_summaries<'life0, 'async_trait>( &'life0 self, target: TxIdent, limit: u64, filter: TxSummaryFilter, ) -> Pin<Box<dyn Future<Output = Result<Self::TransactionSummaries>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_explorer_summary<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Self::ExplorerSummary>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_search_result<'life0, 'async_trait>( &'life0 self, query: String, ) -> Pin<Box<dyn Future<Output = Result<Self::SearchResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§