UNPKG

@metamask-previews/account-api

Version:
18 lines 673 B
import type { EntropySourceId, KeyringAccount } from "@metamask/keyring-api"; import type { AccountId } from "@metamask/keyring-utils"; export type AccountProvider<Account extends KeyringAccount> = { getAccount: (id: AccountId) => Account; getAccounts: (opts: { entropySource: EntropySourceId; groupIndex: number; }) => AccountId[]; createAccounts: (opts: { entropySource: EntropySourceId; groupIndex: number; }) => Promise<AccountId[]>; discoverAndCreateAccounts: (opts: { entropySource: EntropySourceId; groupIndex: number; }) => Promise<AccountId[]>; }; //# sourceMappingURL=providers.d.mts.map