interface WalletStatic<T extends WalletInstance = WalletInstance> {
    previousHashStore?: PreviousHashStore;
    create(config: AccountConfig): Promise<T>;
    fromExtendedKey(key: string): Promise<T>;
    fromMnemonic(mnemonic: Mnemonic): Promise<T>;
    fromPhrase(mnemonic: string, path?: string): Promise<T>;
    fromPrivateKey(
        key: string | bigint | ArrayBufferLike,
    ): Promise<AccountInstance>;
    fromSeed(seed: string | ArrayBufferLike): Promise<T>;
    random(): any;
}

Type Parameters

Hierarchy

Properties

previousHashStore?: PreviousHashStore

Methods

  • Parameters

    • mnemonic: string
    • Optionalpath: string

    Returns Promise<T>

  • Parameters

    • key: string | bigint | ArrayBufferLike

    Returns Promise<AccountInstance>