pub trait Service: Send + Sync + 'static {
    // Required methods
    fn simulate<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SimulateRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SimulateResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: '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 Self: 'async_trait,
             'life0: '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 Self: 'async_trait,
             'life0: '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 Self: 'async_trait,
             'life0: '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 Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

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

Required Methods§

source

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

Simulate simulates executing a transaction for estimating gas usage.

source

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

GetTx fetches a tx by hash.

source

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

BroadcastTx broadcast transaction.

source

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 Self: 'async_trait, 'life0: 'async_trait,

GetTxsEvent fetches txs by event.

source

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 Self: 'async_trait, 'life0: 'async_trait,

GetBlockWithTxs fetches a block with decoded txs.

Since: cosmos-sdk 0.45.2

Implementors§