registerAccount method

  1. @override
void registerAccount({
  1. required String chainId,
  2. required String accountAddress,
})
override

Register accounts for a given namespace or chainId. Used to construct the Namespaces map for the session proposal. Each account must follow the namespace:chainId:address format or this will throw an error.

Implementation

@override
void registerAccount({
  required String chainId,
  required String accountAddress,
}) {
  try {
    return engine.registerAccount(
      chainId: chainId,
      accountAddress: accountAddress,
    );
  } catch (e) {
    rethrow;
  }
}