@xchainjs/xchain-utxo
Version:
Genereic UTXO client for XChainJS
10 lines (9 loc) • 375 B
TypeScript
import { UTXO } from '../types';
import { UtxoSelectionStrategy, UtxoSelectionResult } from './types';
/**
* Largest First strategy - good for consolidation
*/
export declare class LargestFirstStrategy implements UtxoSelectionStrategy {
name: string;
select(utxos: UTXO[], targetValue: number, feeRate: number, extraOutputs?: number): UtxoSelectionResult | null;
}