getAccountId method

Uint8List getAccountId([
  1. Uint8List? subAccount
])

Implementation

Uint8List getAccountId([Uint8List? subAccount]) {
  return Principal.selfAuthenticating(
    getPublicKey().toDer(),
  ).toAccountId(subAccount: subAccount);
}