Transaction constructor
Transaction({
- int? version,
- int? versionGroupId,
- Iterable<
TransactionInput> ? inputs, - Iterable<
TransactionOutput> ? outputs, - int? lockTime,
- int? expiryHeight,
- Int64? saplingValueBalance,
- List<
int> ? branchId,
Implementation
factory Transaction({
$core.int? version,
$core.int? versionGroupId,
$core.Iterable<$1.TransactionInput>? inputs,
$core.Iterable<$1.TransactionOutput>? outputs,
$core.int? lockTime,
$core.int? expiryHeight,
$fixnum.Int64? saplingValueBalance,
$core.List<$core.int>? branchId,
}) {
final $result = create();
if (version != null) {
$result.version = version;
}
if (versionGroupId != null) {
$result.versionGroupId = versionGroupId;
}
if (inputs != null) {
$result.inputs.addAll(inputs);
}
if (outputs != null) {
$result.outputs.addAll(outputs);
}
if (lockTime != null) {
$result.lockTime = lockTime;
}
if (expiryHeight != null) {
$result.expiryHeight = expiryHeight;
}
if (saplingValueBalance != null) {
$result.saplingValueBalance = saplingValueBalance;
}
if (branchId != null) {
$result.branchId = branchId;
}
return $result;
}