pub trait TransactionsApi: Send + Sync + 'static {
    type GetTransactionsStream: Stream<Item = Result<TransactionResponse, Status>> + Send + 'static;
    type GetStateChangesStream: Stream<Item = Result<InvokeScriptResultResponse, Status>> + Send + 'static;
    type GetStatusesStream: Stream<Item = Result<TransactionStatus, Status>> + Send + 'static;
    type GetUnconfirmedStream: Stream<Item = Result<TransactionResponse, Status>> + Send + 'static;

    fn get_transactions<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TransactionsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetTransactionsStream>, Status>> + Send + 'async_trait>>
   where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_state_changes<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TransactionsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetStateChangesStream>, Status>> + Send + 'async_trait>>
   where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_statuses<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TransactionsByIdRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetStatusesStream>, Status>> + Send + 'async_trait>>
   where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_unconfirmed<'life0, 'async_trait>(
        &'life0 self,
        request: Request<TransactionsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetUnconfirmedStream>, Status>> + Send + 'async_trait>>
   where
        'life0: 'async_trait,
        Self: 'async_trait
; fn sign<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SignRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SignedTransaction>, Status>> + Send + 'async_trait>>
   where
        'life0: 'async_trait,
        Self: 'async_trait
; fn broadcast<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SignedTransaction>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SignedTransaction>, 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 TransactionsApiServer.

Required Associated Types

Server streaming response type for the GetTransactions method.

Server streaming response type for the GetStateChanges method.

Server streaming response type for the GetStatuses method.

Server streaming response type for the GetUnconfirmed method.

Required Methods

Implementors