pub trait Service: Send + Sync + 'static {
    fn get_node_info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetNodeInfoRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeInfoResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_syncing<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetSyncingRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetSyncingResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_latest_block<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetLatestBlockRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestBlockResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_block_by_height<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetBlockByHeightRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetBlockByHeightResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_latest_validator_set<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetLatestValidatorSetRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetLatestValidatorSetResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_validator_set_by_height<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetValidatorSetByHeightRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetValidatorSetByHeightResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn abci_query<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AbciQueryRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<AbciQueryResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

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

Required Methods§

GetNodeInfo queries the current node info.

GetSyncing queries node syncing.

GetLatestBlock returns the latest block.

GetBlockByHeight queries block for given height.

GetLatestValidatorSet queries latest validator-set.

GetValidatorSetByHeight queries validator-set at a given height.

ABCIQuery defines a query handler that supports ABCI queries directly to the application, bypassing Tendermint completely. The ABCI query must contain a valid and supported path, including app, custom, p2p, and store.

Since: cosmos-sdk 0.46

Implementors§