注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。The FewestCoinSelector class provides a coin selection algorithm that selects the fewest UTXOs required to meet the target amount. This algorithm is useful for minimizing the size of the transaction and the fees associated with it. This class is a sub-class of AbstractCoinSelector | AbstractCoinSelector and implements the AbstractCoinSelector.performSelection | performSelection method to provide the actual coin selection logic.
AbstractCoinSelector
Parameter | Type | Default value |
---|---|---|
availableUTXOs | UTXO [] | [] |
FewestCoinSelector
AbstractCoinSelector.constructor
Parameter | Type | Description |
---|---|---|
feeReduction | bigint | The amount by which the fee has decreased. |
SelectedCoinsResult
Parameter | Type | Description |
---|---|---|
additionalFeeNeeded | bigint | The additional fee needed. |
SelectedCoinsResult
Returns true if successful, false if insufficient funds.
Parameter | Type |
---|---|
config | CoinSelectionConfig |
SelectedCoinsResult
The selected UTXOs and outputs.
AbstractCoinSelector.performSelection