Alchemy Logo

AccountState

type AccountState<TAccount> =
  | {
      account: Promise<SupportedAccount<TAccount>>;
      error?: never;
      status: "INITIALIZING";
    }
  | {
      account: {
        address: Address;
      };
      error?: never;
      status: "RECONNECTING";
    }
  | {
      account: SupportedAccount<TAccount>;
      error?: never;
      status: "READY";
    }
  | {
      account: undefined;
      error?: never;
      status: "DISCONNECTED";
    }
  | {
      account: undefined;
      error: Error;
      status: "ERROR";
    };

Defined in: account-kit/core/src/store/types.ts:26

Type Parameter

TAccount extends SupportedAccountTypes

Was this page helpful?