pub trait QueryService: Send + Sync + 'static {
    // Required methods
    fn app_parameters<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AppParametersRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<AppParametersResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn transactions_by_height<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TransactionsByHeightRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<TransactionsByHeightResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature rpc only.
Expand description

Generated trait containing gRPC methods that should be implemented for use with QueryServiceServer.

Required Methods§

source

fn app_parameters<'life0, 'async_trait>( &'life0 self, request: Request<AppParametersRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<AppParametersResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the app parameters.

source

fn transactions_by_height<'life0, 'async_trait>( &'life0 self, request: Request<TransactionsByHeightRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<TransactionsByHeightResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the CometBFT transactions that occurred during a given block.

Implementors§