pub trait BankQuery: ClientAbciQuery + Sized {
    // Provided methods
    fn bank_query_balance<'life0, 'async_trait>(
        &'life0 self,
        address: Address,
        denom: Denom
    ) -> Pin<Box<dyn Future<Output = Result<BalanceResponse, BankError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn bank_query_balances<'life0, 'async_trait>(
        &'life0 self,
        address: Address,
        pagination: Option<PaginationRequest>
    ) -> Pin<Box<dyn Future<Output = Result<BalancesResponse, BankError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn bank_query_spendable_balances<'life0, 'async_trait>(
        &'life0 self,
        address: Address,
        pagination: Option<PaginationRequest>
    ) -> Pin<Box<dyn Future<Output = Result<BalancesResponse, BankError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn bank_query_supply<'life0, 'async_trait>(
        &'life0 self,
        denom: Denom
    ) -> Pin<Box<dyn Future<Output = Result<BalanceResponse, BankError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn bank_query_total_supply<'life0, 'async_trait>(
        &'life0 self,
        pagination: Option<PaginationRequest>
    ) -> Pin<Box<dyn Future<Output = Result<BalancesResponse, BankError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn bank_query_denom_metadata<'life0, 'async_trait>(
        &'life0 self,
        denom: Denom
    ) -> Pin<Box<dyn Future<Output = Result<DenomMetadataResponse, BankError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn bank_query_denoms_metadata<'life0, 'async_trait>(
        &'life0 self,
        pagination: Option<PaginationRequest>
    ) -> Pin<Box<dyn Future<Output = Result<DenomsMetadataResponse, BankError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn bank_query_params<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<ParamsResponse, BankError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}

Provided Methods§

source

fn bank_query_balance<'life0, 'async_trait>( &'life0 self, address: Address, denom: Denom ) -> Pin<Box<dyn Future<Output = Result<BalanceResponse, BankError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Query the amount of denom currently held by an address

source

fn bank_query_balances<'life0, 'async_trait>( &'life0 self, address: Address, pagination: Option<PaginationRequest> ) -> Pin<Box<dyn Future<Output = Result<BalancesResponse, BankError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Query all denom balances held by an address

source

fn bank_query_spendable_balances<'life0, 'async_trait>( &'life0 self, address: Address, pagination: Option<PaginationRequest> ) -> Pin<Box<dyn Future<Output = Result<BalancesResponse, BankError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Get total spendable balance for an address (not currently locked away via delegation for example)

source

fn bank_query_supply<'life0, 'async_trait>( &'life0 self, denom: Denom ) -> Pin<Box<dyn Future<Output = Result<BalanceResponse, BankError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Query global supply of denom for all accounts

source

fn bank_query_total_supply<'life0, 'async_trait>( &'life0 self, pagination: Option<PaginationRequest> ) -> Pin<Box<dyn Future<Output = Result<BalancesResponse, BankError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Query global supply of all denoms for all accounts

source

fn bank_query_denom_metadata<'life0, 'async_trait>( &'life0 self, denom: Denom ) -> Pin<Box<dyn Future<Output = Result<DenomMetadataResponse, BankError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Query bank metadata for a single denom

source

fn bank_query_denoms_metadata<'life0, 'async_trait>( &'life0 self, pagination: Option<PaginationRequest> ) -> Pin<Box<dyn Future<Output = Result<DenomsMetadataResponse, BankError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Query bank metadata for all denoms

source

fn bank_query_params<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<ParamsResponse, BankError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Query bank module cosmos sdk params

Implementors§

source§

impl<T> BankQuery for Twhere T: ClientAbciQuery,