bitcoindevkit/bdk_wallet
View on GitHubFeerate should be returned from Transaction construction
Open
#187 opened on Jan 11, 2022
good first issuenew feature
Repository metrics
- Stars
- (54 stars)
- PR merge metrics
- (PR metrics pending)
Description
When you get TransactionDetails from tx_builder.finish() it has the fee for the overall transaction but does not include the feerate of the resulting transaction. There is no simple way for the caller to replicate this information since the transaction does not have witness data at this point. This is annoying because after constructing the psbt the user should know the feerate before signing it.
This can either be done by returning another value from builder.finish() or by adding a (perhaps optional) field to TransactionDetails.