addExternalAccount abstract method

Future<void> addExternalAccount({
  1. required Address address,
  2. PublicKey? publicKey,
  3. String? name,
})

Add external account with address. If publicKey is not specified, then all public keys will be checked. Throws an exception if no external accounts were added. name is optional. This method calls addAccount inside.

Implementation

Future<void> addExternalAccount({
  required Address address,
  PublicKey? publicKey,
  String? name,
});