CoinSelection.random constructor
CoinSelection.random({})
A simple selection algorithm that selects inputs randomly from the
candidates
until the required amount has been reached.
Implementation
factory CoinSelection.random({
int version = Transaction.currentVersion,
required Iterable<InputCandidate> candidates,
required Iterable<Output> recipients,
required Program changeProgram,
required BigInt feePerKb,
required BigInt minFee,
required BigInt minChange,
int locktime = 0,
}) => CoinSelection.inOrderUntilEnough(
version: version,
candidates: candidates.toList()..shuffle(),
recipients: recipients,
changeProgram: changeProgram,
feePerKb: feePerKb,
minFee: minFee,
minChange: minChange,
locktime: locktime,
);