UNPKG

@metamask/multichain-account-service

Version:
64 lines 2.45 kB
import type { Bip44Account } from "@metamask/account-api"; import type { EntropySourceId } from "@metamask/keyring-api"; import type { InternalAccount } from "@metamask/keyring-internal-api"; import { BaseAccountProvider } from "./BaseAccountProvider.cjs"; export declare class EvmAccountProvider extends BaseAccountProvider { isAccountCompatible(account: Bip44Account<InternalAccount>): boolean; createAccounts({ entropySource, groupIndex, }: { entropySource: EntropySourceId; groupIndex: number; }): Promise<{ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account"; id: string; options: Record<string, import("@metamask/utils").Json> & { entropy?: { type: "mnemonic"; id: string; derivationPath: string; groupIndex: number; } | { type: "private-key"; } | undefined; exportable?: boolean | undefined; }; metadata: { name: string; importTime: number; keyring: { type: string; }; nameLastUpdatedAt?: number | undefined; snap?: { name: string; id: string; enabled: boolean; } | undefined; lastSelected?: number | undefined; }; address: string; scopes: `${string}:${string}`[]; methods: string[]; }[] & Bip44Account<{ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account"; id: string; options: Record<string, import("@metamask/utils").Json> & { entropy?: { type: "mnemonic"; id: string; derivationPath: string; groupIndex: number; } | { type: "private-key"; } | undefined; exportable?: boolean | undefined; }; address: string; scopes: `${string}:${string}`[]; methods: string[]; }>[]>; discoverAndCreateAccounts(_: { entropySource: EntropySourceId; groupIndex: number; }): Promise<never[]>; } //# sourceMappingURL=EvmAccountProvider.d.cts.map