getTokenLargestAccounts method

Future<List<TokenAmount>> getTokenLargestAccounts(
  1. Pubkey mint, {
  2. GetTokenLargestAccountsConfig? config,
})

Returns the 20 largest accounts of a particular SPL Token type.

Implementation

Future<List<TokenAmount>> getTokenLargestAccounts(
  final Pubkey mint, {
  final GetTokenLargestAccountsConfig? config,
}) async =>
    (await getTokenLargestAccountsRaw(mint, config: config)).result!.value!;