noRippleCheck method

Future<Map<String, dynamic>> noRippleCheck(
  1. String account,
  2. NoRippleCheckRole role, {
  3. bool transactions = false,
  4. int? limit = 300,
  5. String? ledgerHash,
  6. XRPLLedgerIndex? ledgerIndex = XRPLLedgerIndex.validated,
})

Implementation

Future<Map<String, dynamic>> noRippleCheck(
  String account,
  NoRippleCheckRole role, {
  bool transactions = false,
  int? limit = 300,
  String? ledgerHash,
  XRPLLedgerIndex? ledgerIndex = XRPLLedgerIndex.validated,
}) async {
  final Map<String, dynamic> configParams = {};
  createRpcConfig(configParams, "account", account);
  createRpcConfig(configParams, "role", role.value);
  createRpcConfig(configParams, "transactions", transactions);
  createRpcConfig(configParams, "limit", limit);
  createRpcConfig(configParams, "ledger_index", ledgerIndex?.value);
  createRpcConfig(configParams, "ledger_hash", ledgerHash);
  final response = await makeCustomCall<Map<String, dynamic>>(
      "noripple_check", [configParams]);
  return response;
}