Struct cosmos_client::client::bank::BankModule
source · pub struct BankModule { /* private fields */ }Implementations§
source§impl BankModule
impl BankModule
pub fn new(rpc: Rc<HttpClient>) -> Self
pub async fn balance( &self, address: &str, denom: &str ) -> Result<QueryBalanceResponse, CosmosClientError>
pub async fn all_balances( &self, address: &str, pagination: Option<PageRequest> ) -> Result<QueryAllBalancesResponse, CosmosClientError>
pub async fn spendable_balances( &self, address: &str, pagination: Option<PageRequest> ) -> Result<QuerySpendableBalancesResponse, CosmosClientError>
pub async fn total_supply( &self, pagination: Option<PageRequest> ) -> Result<QueryTotalSupplyResponse, CosmosClientError>
pub async fn supply_of( &self, denom: &str ) -> Result<QuerySupplyOfResponse, CosmosClientError>
pub async fn params(&self) -> Result<QueryParamsResponse, CosmosClientError>
pub async fn denom_metadata( &self, denom: &str ) -> Result<QueryDenomMetadataResponse, CosmosClientError>
pub async fn denoms_metadata( &self, pagination: Option<PageRequest> ) -> Result<QueryDenomsMetadataResponse, CosmosClientError>
pub fn msg_send_payload(from: &str, to: &str) -> Vec<u8>
Auto Trait Implementations§
impl !RefUnwindSafe for BankModule
impl !Send for BankModule
impl !Sync for BankModule
impl Unpin for BankModule
impl !UnwindSafe for BankModule
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request