getToken method

Future<Token> getToken(
  1. String creator,
  2. String collectionName,
  3. String tokenName, {
  4. int? propertyVersion = 0,
})

Queries token balance for the token creator.

Implementation

Future<Token> getToken(
  String creator,
  String collectionName,
  String tokenName,
  {int? propertyVersion = 0}
) async {
  final tokenDataId = TokenDataId(creator, collectionName, tokenName);
  return await getTokenForAccount(creator, TokenId(tokenDataId, propertyVersion!.toString()));
}