Replies: 4 comments 4 replies
-
"One way you can do that is by using one of the more fine-tuning variants on the AddressIndex type when calling the Wallet.get_address() method. For example you can use AddressIndex.Peek(u32) always with the same index number, or AddressIndex.Reset(u32) to keep the index at a specific number." |
Beta Was this translation helpful? Give feedback.
-
"In addition to what @thunderbiscuit said above you should also be able to use the .drain_to() function to use your self selected address for transaction change: https://docs.rs/bdk/latest/bdk/wallet/tx_builder/struct.TxBuilder.html#method.drain_to" |
Beta Was this translation helpful? Give feedback.
-
In |
Beta Was this translation helpful? Give feedback.
-
@LLFourn @notmandatory @thunderbiscuit would having a I think it's more elegant than cancelling the transaction every time? In this approach (BDK) user increments the change when transaction is broadcast or PSBT is shown to end user |
Beta Was this translation helpful? Give feedback.
-
Repost from Discord by @icota.
Beta Was this translation helpful? Give feedback.
All reactions