penumbra_proto::penumbra::core::app::v1::query_service_server

Trait QueryService

Source
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§