chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
14 lines (13 loc) • 1 kB
TypeScript
import { Seed } from '../../entities/Secret/implementations/Seed';
import { SerializedWallet } from '../../Wallet';
import { SeedableWallet, SerializedSeedableWallet } from '../../abstract/SeedableWallet';
import { ChainGateClient } from 'chaingate-client';
import { Encrypted } from '../../entities/WalletEncryption/Encrypted';
import { Encrypt } from '../../entities/WalletEncryption/WalletEncryption';
export declare class SeedWallet extends SeedableWallet {
constructor(apiClient: ChainGateClient, secret: Seed | Encrypted, askForPassword?: (attempts: number, reject: () => void) => Promise<string>);
protected serializeInternal(): Promise<SerializedWallet>;
getSeed(): Promise<Seed>;
static new(apiKey: string, seed: string | Uint8Array, warnAboutUnencrypted: boolean, encrypt?: Encrypt): Promise<SeedWallet>;
static import(apiKey: string, exported: SerializedSeedableWallet, askForPassword: (attempts: number, reject: () => void) => Promise<string>): Promise<SeedWallet>;
}