getTokensAndNFTs static method

Future getTokensAndNFTs(
  1. String address,
  2. bool parseMetadataUri
)

Get tokens and NFTs

address is user's solana public address

parseMetadataUri if parse the nft meta data

Implementation

static Future<dynamic> getTokensAndNFTs(
    String address, bool parseMetadataUri) async {
  const method = "enhancedGetTokensAndNFTs";
  Map<String, dynamic> dict = {"parseMetadataUri": parseMetadataUri};
  final params = [address, dict];
  return await SolanaService.rpc(method, params);
}