@metamask-previews/account-api
Version:
MetaMask Multichain Account API
18 lines • 673 B
text/typescript
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