SigningInput constructor
SigningInput({
- int? hashType,
- Int64? amount,
- Int64? byteFee,
- String? toAddress,
- String? changeAddress,
- Iterable<
List< ? privateKey,int> > - Map<
String, List< ? scripts,int> > - Iterable<
UnspentTransaction> ? utxo, - bool? useMaxAmount,
- int? coinType,
- TransactionPlan? plan,
- int? lockTime,
- List<
int> ? outputOpReturn, - Iterable<
OutputAddress> ? extraOutputs, - bool? useMaxUtxo,
- bool? disableDustFilter,
- int? time,
- bool? zip0317,
- SigningInput? signingV2,
- Int64? fixedDustThreshold,
- 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;
}