buildDummyTx function

RawTransaction buildDummyTx({
  1. required UTXONetworkType networkType,
  2. required HDWalletPath walletPath,
  3. required Map<ElectrumOutput, Input> inputMap,
  4. required List<Output> dummyOutputs,
})

Implementation

RawTransaction buildDummyTx({
  required UTXONetworkType networkType,
  required HDWalletPath walletPath,
  required Map<ElectrumOutput, Input> inputMap,
  required List<Output> dummyOutputs,
}) {
  final dummySeed = helloSeed;

  var dummyTx = RawTransaction.build(
    version: 0,
    lockTime: 0,
    validFrom: 0,
    validUntil: 0,
    inputMap: inputMap,
    outputs: dummyOutputs,
  ).sign(
    seed: dummySeed,
    networkType: networkType,
    walletPath: walletPath,
  );

  return dummyTx;
}