Trait BlocksApi

Source
pub trait BlocksApi {
    // Required methods
    fn get_block_by_hash(
        &self,
        hash: &str,
    ) -> Box<dyn Future<Item = ResponsesGetBlockByHash, Error = Error<Value>>>;
    fn get_block_info(
        &self,
        height: i32,
    ) -> Box<dyn Future<Item = ResponsesGetBlockInfo, Error = Error<Value>>>;
    fn get_block_transactions(
        &self,
        height: i32,
    ) -> Box<dyn Future<Item = ResponsesGetBlockTransactions, Error = Error<Value>>>;
    fn get_current_block_height(
        &self,
    ) -> Box<dyn Future<Item = ResponsesGetBlockHeight, Error = Error<Value>>>;
}

Required Methods§

Source

fn get_block_by_hash( &self, hash: &str, ) -> Box<dyn Future<Item = ResponsesGetBlockByHash, Error = Error<Value>>>

Source

fn get_block_info( &self, height: i32, ) -> Box<dyn Future<Item = ResponsesGetBlockInfo, Error = Error<Value>>>

Source

fn get_block_transactions( &self, height: i32, ) -> Box<dyn Future<Item = ResponsesGetBlockTransactions, Error = Error<Value>>>

Source

fn get_current_block_height( &self, ) -> Box<dyn Future<Item = ResponsesGetBlockHeight, Error = Error<Value>>>

Implementors§