isAccountIdValid static method

bool isAccountIdValid(
  1. String accountId
)

check if account ID or wallet address is valid

Implementation

static bool isAccountIdValid(String accountId) {
  if (accountId.length < 10 || accountId.substring(0, 1) != 'L') return false;
  try {
    lyraDecAccountId(accountId);
    return true;
  } catch (e) {
    print(e);
    return false;
  }
}