Select compressed inputs for a target amount.
Sorts by amount descending (largest first), accumulates until the target is met, then pads to MAX_INPUT_ACCOUNTS if possible within a single batch.
neededAmount <= 0
accounts
Cold light-token accounts available for loading.
Amount that must be covered by selected inputs.
Subset of accounts, sorted largest-first.
Select compressed inputs for a target amount.
Sorts by amount descending (largest first), accumulates until the target is met, then pads to MAX_INPUT_ACCOUNTS if possible within a single batch.
neededAmount <= 0oraccountsis empty.