BtcTransaction constructor
BtcTransaction({})
Implementation
BtcTransaction(
{required this.inputs,
required this.outputs,
List<TxWitnessInput> w = const [],
this.hasSegwit = false,
Uint8List? lock,
Uint8List? v})
: locktime = lock ?? Uint8List.fromList(DEFAULT_TX_LOCKTIME),
version = v ?? Uint8List.fromList(DEFAULT_TX_VERSION) {
witnesses.addAll(w);
}