btcsuite / btcwallet

A secure bitcoin wallet daemon written in Go (golang)
ISC License
1.15k stars 590 forks source link

Use selected Utxos while crafting txn #912

Closed Chinwendu20 closed 8 months ago

Chinwendu20 commented 9 months ago

Related issue: https://github.com/lightningnetwork/lnd/issues/6949#issue-1386947921 and it is needed for https://github.com/lightningnetwork/lnd/pull/8516

This pull request enables SendOutput in the wallet to use passed UTXOS as inputs for transactions. All passed UTXOS would be used as inputs.

Chinwendu20 commented 9 months ago

I think we can continue with this approach, more straightforward than the psbt API, having to fund, finalize and all that, this is more direct. Made some changes with respect to the requirement as well.