buildOutputs function

List<Output> buildOutputs({
  1. required String recipient,
  2. required BigInt value,
  3. required String? changeAddress,
  4. required BigInt changeValue,
  5. required UTXONetworkType networkType,
})

Implementation

List<Output> buildOutputs({
  required String recipient,
  required BigInt value,
  required String? changeAddress,
  required BigInt changeValue,
  required UTXONetworkType networkType,
}) {
  return [
    buildOutput(recipient, value, networkType),
    if (changeAddress != null && changeValue != BigInt.zero)
      buildOutput(changeAddress, changeValue, networkType),
  ];
}