UNPKG

756 BTypeScriptView Raw
1import { UnspentInfo } from '../coins/abstractUtxoCoin';
2/**
3 * An unspent with bear minimum information required for recoveries.
4 */
5export interface RecoveryUnspent extends UnspentInfo {
6 amount: number;
7 n: number;
8 txid: string;
9 address: string;
10}
11/**
12 * An account with bear minimum information required for recoveries.
13 */
14export interface RecoveryAccountData {
15 txCount: number;
16 totalBalance: number;
17}
18/**
19 * Methods required to perform different recovery actions in UTXO coins.
20 */
21export interface RecoveryProvider {
22 getExplorerUrl(query: string): string;
23 getAccountInfo(address: string): Promise<RecoveryAccountData>;
24 getUnspents(address: string): Promise<RecoveryUnspent[]>;
25}
26//# sourceMappingURL=types.d.ts.map
\No newline at end of file