Transaction constructor
Transaction({
- int? version,
- int? lockTime,
- Iterable<
TransactionInput> ? inputs, - Iterable<
TransactionOutput> ? outputs,
Implementation
factory Transaction({
$core.int? version,
$core.int? lockTime,
$core.Iterable<TransactionInput>? inputs,
$core.Iterable<TransactionOutput>? outputs,
}) {
final _result = create();
if (version != null) {
_result.version = version;
}
if (lockTime != null) {
_result.lockTime = lockTime;
}
if (inputs != null) {
_result.inputs.addAll(inputs);
}
if (outputs != null) {
_result.outputs.addAll(outputs);
}
return _result;
}