getAccountNFTS method
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;
}