buildOutputs function
- required String recipient,
- required BigInt value,
- required String? changeAddress,
- required BigInt changeValue,
- 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),
];
}