toSpendable method

List<SpendableUtxo> toSpendable()

Converts to SpendableUtxo list (without owner key info).

Implementation

List<SpendableUtxo> toSpendable() {
  return unspent
      .map((u) => SpendableUtxo(
            outpoint: u.outpoint,
            value: u.value,
            scriptPubKey: u.scriptPubKey,
            blockHeight: u.blockHeight,
            chainParams: chainParams,
          ))
      .toList();
}