@nekoproject/wallets
Version:
Cross-chain Wallet
20 lines • 715 B
TypeScript
/// <reference types="node" />
import { Wallet } from './Wallet';
import { ethers } from 'ethers';
export declare class ETHWallet extends Wallet {
constructor(wallet: ethers.Wallet);
get address(): string;
getPrivateKey(): string;
getSeedsPhrase(): {
phrase: string;
path: string;
locale: string;
};
static validate(privateKey: string): boolean;
static generateWallet(): Wallet;
static fromSeed(seed: Uint8Array): Wallet;
static fromPrivateKey(secretKey: string): Wallet;
static fromMnemonic(mnemonic: string): Promise<Wallet>;
static generateWalletWithIndex(seed: Buffer, index: number): Promise<Wallet>;
}
//# sourceMappingURL=ETHWallet.d.ts.map