addInput method
Returns a new Transaction with the input
added to the end of the input
list.
Implementation
Transaction addInput(Input input) => Transaction(
version: version,
inputs: [
// Only keep ANYONECANPAY signatures when adding a new input
...inputs.map(
(input) => input.filterSignatures(
(insig) => insig.hashType.anyOneCanPay,
),
),
input,
],
outputs: outputs,
locktime: locktime,
);