getTokenSupply abstract method

Future<TokenAmountResult> getTokenSupply(
  1. String mint, {
  2. Commitment? commitment,
})

Returns the total supply of an SPL Token type.

mint Pubkey of token Mint to query, as base-58 encoded string

commitment For commitment parameter description see this document Commitment.processed is not supported as commitment.

Implementation

Future<TokenAmountResult> getTokenSupply(
  String mint, {
  Commitment? commitment,
});