pub trait Service: Send + Sync + 'static {
    fn simulate<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SimulateRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SimulateResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_tx<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetTxRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetTxResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn broadcast_tx<'life0, 'async_trait>(
        &'life0 self,
        request: Request<BroadcastTxRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<BroadcastTxResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_txs_event<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetTxsEventRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetTxsEventResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_block_with_txs<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetBlockWithTxsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetBlockWithTxsResponse>, 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§

Simulate simulates executing a transaction for estimating gas usage.

GetTx fetches a tx by hash.

BroadcastTx broadcast transaction.

GetTxsEvent fetches txs by event.

GetBlockWithTxs fetches a block with decoded txs.

Since: cosmos-sdk 0.45.2

Implementors§