Methods
fetchBalance
- fetchBalance(__namedParameters: {
accountAddress: string;
denom: string;
}): Promise<Coin>
-
Parameters
-
__namedParameters: {
accountAddress: string;
denom: string;
}
-
accountAddress: string
-
denom: string
Returns Promise<Coin>
fetchBalances
- fetchBalances(address: string): Promise<{
balances: Coin[];
pagination: Pagination;
}>
-
Returns Promise<{
balances: Coin[];
pagination: Pagination;
}>
fetchTotalSupply
- fetchTotalSupply(pagination?: PaginationOption): Promise<{
pagination: Pagination;
supply: TotalSupply;
}>
-
Parameters
-
Optional
pagination: PaginationOption
Returns Promise<{
pagination: Pagination;
supply: TotalSupply;
}>
The bank module is responsible for handling multi-asset coin transfers between accounts.
Example
To use Bank methods, initialise a ChainGrpcBankApi object to with a gRPC endpoint. An endpoint can be retrieved by using networkEndpoints.