getAccountNFTS method

Future<Map<String, dynamic>> getAccountNFTS(
  1. String address, {
  2. int? limit,
  3. String? ledgerHash,
  4. XRPLLedgerIndex? ledgerIndex = XRPLLedgerIndex.validated,
})

This method retrieves all of the NFTs currently owned by the specified account.

Implementation

Future<Map<String, dynamic>> getAccountNFTS(
  String address, {
  int? limit,
  String? ledgerHash,
  XRPLLedgerIndex? ledgerIndex = XRPLLedgerIndex.validated,
}) async {
  final Map<String, dynamic> configParams = {};
  _createRpcConfig(configParams, "account", address);
  _createRpcConfig(configParams, "limit", limit);
  _createRpcConfig(configParams, "ledger_index", ledgerIndex?.value);
  _createRpcConfig(configParams, "ledger_hash", ledgerHash);
  final response = await makeCustomCall<Map<String, dynamic>>(
      "account_nfts", [configParams]);
  return response;
}