Trait waves_rust::waves_proto::node::grpc::accounts_api_server::AccountsApi
source · pub trait AccountsApi: Send + Sync + 'static {
type GetBalancesStream: Stream<Item = Result<BalanceResponse, Status>> + Send + 'static;
type GetActiveLeasesStream: Stream<Item = Result<LeaseResponse, Status>> + Send + 'static;
type GetDataEntriesStream: Stream<Item = Result<DataEntryResponse, Status>> + Send + 'static;
fn get_balances<'life0, 'async_trait>(
&'life0 self,
request: Request<BalancesRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetBalancesStream>, Status>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn get_script<'life0, 'async_trait>(
&'life0 self,
request: Request<AccountRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ScriptData>, Status>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn get_active_leases<'life0, 'async_trait>(
&'life0 self,
request: Request<AccountRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetActiveLeasesStream>, Status>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn get_data_entries<'life0, 'async_trait>(
&'life0 self,
request: Request<DataRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetDataEntriesStream>, Status>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn resolve_alias<'life0, 'async_trait>(
&'life0 self,
request: Request<String>
) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, 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 AccountsApiServer.
Required Associated Types§
sourcetype GetBalancesStream: Stream<Item = Result<BalanceResponse, Status>> + Send + 'static
type GetBalancesStream: Stream<Item = Result<BalanceResponse, Status>> + Send + 'static
Server streaming response type for the GetBalances method.
sourcetype GetActiveLeasesStream: Stream<Item = Result<LeaseResponse, Status>> + Send + 'static
type GetActiveLeasesStream: Stream<Item = Result<LeaseResponse, Status>> + Send + 'static
Server streaming response type for the GetActiveLeases method.
sourcetype GetDataEntriesStream: Stream<Item = Result<DataEntryResponse, Status>> + Send + 'static
type GetDataEntriesStream: Stream<Item = Result<DataEntryResponse, Status>> + Send + 'static
Server streaming response type for the GetDataEntries method.