-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Labels
new featureNew feature or requestNew feature or request
Description
Describe the enhancement
I want to create a transaction and ensure that prevout has been confirmed onchain.
Similar to ChangeSpendPolicy I'd like to introduce a ConfirmationSpendPolicy.
This could be used to spend only Confirmed, Trusted or Any output.
The code to use it could look like the example below
wallet.create_tx()
.add_recipient(address.script_pubkey(), payment_amount)
.only_spend_confirmed_utxos()
.finalize()
Use case
When creating a transaction I want to ensure it cannot be doublespent.
If I use an unconfirmed and untrusted prevout, I cannot guarantee the transaction will not be doublespent
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
new featureNew feature or requestNew feature or request
Type
Projects
Status
Done