defaultAccountState

1function defaultAccountState<T>(): AccountState<T>;

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

Returns the default state for an account of a supported type.

Example

1import { defaultAccountState } from "@account-kit/core";
2
3const defaultLightAccountState = defaultAccountState<"LightAccount">();

Type Parameters

Type ParameterDescription

T extends SupportedAccountTypes

Returns

AccountState<T>

The default state for the specified account type