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,
})

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,
}) {
  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;
  }
  return _result;
}