nftPortfolio function

  1. @riverpod
Future<ListNFTsResponse?> nftPortfolio(
  1. NftPortfolioRef ref
)

Implementation

@riverpod
Future<ListNFTsResponse?> nftPortfolio(NftPortfolioRef ref) async {
  final address = ref
      .watch(walletsProvider.select((value) => value.selectedAccount?.address));
  if (address == null) {
    return null;
  }
  return Ark().nft.portfolio(address);
}