isClassicAddress static method

bool isClassicAddress(
  1. String? address
)

Checks whether the given address is a classic XRP address.

Implementation

static bool isClassicAddress(String? address) {
  try {
    XrpAddrDecoder().decodeAddr(address!);
    return true;
  } catch (e) {
    return false;
  }
}