clone method
dynamic
clone()
Get clone of transaction
Implementation
clone() {
Transaction newTx = Transaction();
newTx.version = version;
newTx.locktime = locktime;
newTx.ins = ins.map((txIn) {
return Input(
hash: txIn.hash,
index: txIn.index,
script: txIn.script,
sequence: txIn.sequence,
witness: txIn.witness,
);
}).toList();
newTx.outs = outs.map((txIn) {
return Output(
script: txIn.script,
value: txIn.value,
);
}).toList();
return newTx;
}