///
import 'source-map-support/register';
import { Client } from './client';
import { Storage } from './storage';
export interface KeyImport {
address: string;
privKey?: string;
pubKey?: string;
}
export interface WalletObj {
name: string;
baseUrl: string;
chain: string;
network: string;
path: string;
phrase: string;
password: string;
storage: Storage;
storageType: string;
addressIndex: number;
tokens: Array;
lite: boolean;
}
export declare class Wallet {
masterKey: any;
baseUrl: string;
chain: string;
network: string;
client: Client;
storage: Storage;
storageType: string;
unlocked?: {
encryptionKey: string;
masterKey: string;
};
password: string;
encryptionKey: string;
authPubKey: string;
pubKey: string;
xPubKey: string;
name: string;
path: string;
addressIndex?: number;
authKey: string;
derivationPath: string;
tokens?: Array;
lite: boolean;
constructor(params: Wallet | WalletObj);
getApiUrl(): string;
saveWallet(): Promise;
static deleteWallet(params: {
name: string;
path?: string;
storage?: Storage;
storageType?: string;
}): Promise;
static create(params: Partial): Promise;
static exists(params: {
name: string;
path?: string;
storage?: Storage;
}): Promise;
static loadWallet(params: {
name: string;
path?: string;
storage?: Storage;
storageType?: string;
}): Promise;
lock(): this;
unlock(password: any): Promise;
register(params?: {
baseUrl?: string;
}): Promise;
getAuthSigningKey(): any;
getBalance(time?: string, token?: string): Promise;
getNetworkFee(params?: {
target?: number;
}): Promise<{}>;
getUtxos(params?: {
includeSpent?: boolean;
}): import("request").Request;
getUtxosArray(params?: {
includeSpent?: boolean;
}): Promise<{}>;
listTransactions(params: any): import("request").Request;
getToken(contractAddress: any): Promise;
addToken(params: any): Promise;
newTx(params: {
utxos?: any[];
recipients: {
address: string;
amount: number;
}[];
from?: string;
change?: string;
invoiceID?: string;
fee?: number;
feeRate?: number;
nonce?: number;
tag?: number;
data?: string;
token?: string;
gasLimit?: number;
gasPrice?: number;
}): Promise;
broadcast(params: {
tx: string;
}): Promise;
importKeys(params: {
keys: KeyImport[];
}): Promise<{}>;
signTx(params: any): Promise;
checkWallet(): Promise;
syncAddresses(withChangeAddress?: boolean): Promise<{}>;
getAddresses(): Promise;
deriveAddress(addressIndex: any, isChange: any): string;
derivePrivateKey(isChange: any, addressIndex?: number): Promise;
nextAddressPair(withChangeAddress?: boolean): Promise;
nextAddressPairLite(withChangeAddress?: boolean): Promise;
getNonce(addressIndex?: number, isChange?: boolean): Promise;
}
//# sourceMappingURL=wallet.d.ts.map