pub trait Query: Send + Sync + 'static {
    fn balance<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryBalanceRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryBalanceResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn all_balances<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryAllBalancesRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryAllBalancesResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn spendable_balances<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QuerySpendableBalancesRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QuerySpendableBalancesResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn total_supply<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryTotalSupplyRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryTotalSupplyResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn supply_of<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QuerySupplyOfRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QuerySupplyOfResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn params<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryParamsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryParamsResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn denom_metadata<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryDenomMetadataRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomMetadataResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn denoms_metadata<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryDenomsMetadataRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomsMetadataResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn denom_owners<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryDenomOwnersRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryDenomOwnersResponse>, 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 QueryServer.

Required Methods§

Balance queries the balance of a single coin for a single account.

AllBalances queries the balance of all coins for a single account.

SpendableBalances queries the spenable balance of all coins for a single account.

Since: cosmos-sdk 0.46

TotalSupply queries the total supply of all coins.

SupplyOf queries the supply of a single coin.

Params queries the parameters of x/bank module.

DenomsMetadata queries the client metadata of a given coin denomination.

DenomsMetadata queries the client metadata for all registered coin denominations.

DenomOwners queries for all account addresses that own a particular token denomination.

Since: cosmos-sdk 0.46

Implementors§