SigningInput constructor

SigningInput({
  1. int? hashType,
  2. Int64? amount,
  3. Int64? byteFee,
  4. String? toAddress,
  5. String? changeAddress,
  6. Iterable<List<int>>? privateKey,
  7. Map<String, List<int>>? scripts,
  8. Iterable<UnspentTransaction>? utxo,
  9. bool? useMaxAmount,
  10. int? coinType,
  11. TransactionPlan? plan,
  12. int? lockTime,
  13. List<int>? outputOpReturn,
  14. Iterable<OutputAddress>? extraOutputs,
  15. bool? useMaxUtxo,
  16. bool? disableDustFilter,
  17. int? time,
  18. bool? zip0317,
  19. SigningInput? signingV2,
  20. Int64? fixedDustThreshold,
  21. OutputIndex? outputOpReturnIndex,
})

Implementation

factory SigningInput({
  $core.int? hashType,
  $fixnum.Int64? amount,
  $fixnum.Int64? byteFee,
  $core.String? toAddress,
  $core.String? changeAddress,
  $core.Iterable<$core.List<$core.int>>? privateKey,
  $core.Map<$core.String, $core.List<$core.int>>? scripts,
  $core.Iterable<UnspentTransaction>? utxo,
  $core.bool? useMaxAmount,
  $core.int? coinType,
  TransactionPlan? plan,
  $core.int? lockTime,
  $core.List<$core.int>? outputOpReturn,
  $core.Iterable<OutputAddress>? extraOutputs,
  $core.bool? useMaxUtxo,
  $core.bool? disableDustFilter,
  $core.int? time,
  $core.bool? zip0317,
  $5.SigningInput? signingV2,
  $fixnum.Int64? fixedDustThreshold,
  OutputIndex? outputOpReturnIndex,
}) {
  final $result = create();
  if (hashType != null) {
    $result.hashType = hashType;
  }
  if (amount != null) {
    $result.amount = amount;
  }
  if (byteFee != null) {
    $result.byteFee = byteFee;
  }
  if (toAddress != null) {
    $result.toAddress = toAddress;
  }
  if (changeAddress != null) {
    $result.changeAddress = changeAddress;
  }
  if (privateKey != null) {
    $result.privateKey.addAll(privateKey);
  }
  if (scripts != null) {
    $result.scripts.addAll(scripts);
  }
  if (utxo != null) {
    $result.utxo.addAll(utxo);
  }
  if (useMaxAmount != null) {
    $result.useMaxAmount = useMaxAmount;
  }
  if (coinType != null) {
    $result.coinType = coinType;
  }
  if (plan != null) {
    $result.plan = plan;
  }
  if (lockTime != null) {
    $result.lockTime = lockTime;
  }
  if (outputOpReturn != null) {
    $result.outputOpReturn = outputOpReturn;
  }
  if (extraOutputs != null) {
    $result.extraOutputs.addAll(extraOutputs);
  }
  if (useMaxUtxo != null) {
    $result.useMaxUtxo = useMaxUtxo;
  }
  if (disableDustFilter != null) {
    $result.disableDustFilter = disableDustFilter;
  }
  if (time != null) {
    $result.time = time;
  }
  if (zip0317 != null) {
    $result.zip0317 = zip0317;
  }
  if (signingV2 != null) {
    $result.signingV2 = signingV2;
  }
  if (fixedDustThreshold != null) {
    $result.fixedDustThreshold = fixedDustThreshold;
  }
  if (outputOpReturnIndex != null) {
    $result.outputOpReturnIndex = outputOpReturnIndex;
  }
  return $result;
}