Rpc

Trait Rpc 

Source
pub trait Rpc {
    // Required methods
    fn get_transactions<'life0, 'async_trait>(
        &'life0 self,
        search_key: SearchKey,
        order: Order,
        limit: Uint32,
        after: Option<JsonBytes>,
    ) -> Pin<Box<dyn Future<Output = Result<Pagination<Tx>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_transaction<'life0, 'life1, 'async_trait>(
        &'life0 self,
        hash: &'life1 H256,
    ) -> Pin<Box<dyn Future<Output = Result<Option<TransactionView>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_header_by_number<'life0, 'async_trait>(
        &'life0 self,
        number: BlockNumber,
    ) -> Pin<Box<dyn Future<Output = Result<HeaderView, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_indexer_tip<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<IndexerTip, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_block_by_number<'life0, 'async_trait>(
        &'life0 self,
        number: BlockNumber,
    ) -> Pin<Box<dyn Future<Output = Result<BlockView, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_transactions<'life0, 'async_trait>( &'life0 self, search_key: SearchKey, order: Order, limit: Uint32, after: Option<JsonBytes>, ) -> Pin<Box<dyn Future<Output = Result<Pagination<Tx>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_transaction<'life0, 'life1, 'async_trait>( &'life0 self, hash: &'life1 H256, ) -> Pin<Box<dyn Future<Output = Result<Option<TransactionView>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_header_by_number<'life0, 'async_trait>( &'life0 self, number: BlockNumber, ) -> Pin<Box<dyn Future<Output = Result<HeaderView, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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

Source

fn get_block_by_number<'life0, 'async_trait>( &'life0 self, number: BlockNumber, ) -> Pin<Box<dyn Future<Output = Result<BlockView, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§