-
- All Implemented Interfaces:
public final class BumpFeeTxBuilder
The BumpFeeTxBuilder is used to bump the fee on a transaction that has been broadcast and has its RBF flag set to true.
-
-
Constructor Summary
Constructors Constructor Description BumpFeeTxBuilder()
-
Method Summary
Modifier and Type Method Description final BumpFeeTxBuilder
allowShrinking(String address)
Explicitly tells the wallet that it is allowed to reduce the amount of the output matching this scriptPubKey in order to bump the transaction fee. final BumpFeeTxBuilder
enableRbf()
Enable signaling RBF. final BumpFeeTxBuilder
enableRbfWithSequence(UInt nsequence)
Enable signaling RBF with a specific nSequence value. final TxBuilderResult
finish(Wallet wallet)
Finish building the transaction. -
-
Method Detail
-
allowShrinking
final BumpFeeTxBuilder allowShrinking(String address)
Explicitly tells the wallet that it is allowed to reduce the amount of the output matching this scriptPubKey in order to bump the transaction fee. Without specifying this the wallet will attempt to find a change output to shrink instead. Note that the output may shrink to below the dust limit and therefore be removed. If it is preserved then it is currently not guaranteed to be in the same position as it was originally. Returns an error if scriptPubkey can’t be found among the recipients of the transaction we are bumping.
-
enableRbf
final BumpFeeTxBuilder enableRbf()
Enable signaling RBF. This will use the default
nsequence
value of0xFFFFFFFD
.
-
enableRbfWithSequence
final BumpFeeTxBuilder enableRbfWithSequence(UInt nsequence)
Enable signaling RBF with a specific nSequence value. This can cause conflicts if the wallet's descriptors contain an "older" (OP_CSV) operator and the given
nsequence
is lower than the CSV value. If thensequence
is higher than0xFFFFFFFD
an error will be thrown, since it would not be a valid nSequence to signal RBF.
-
finish
final TxBuilderResult finish(Wallet wallet)
Finish building the transaction. Returns a TxBuilderResult.
-
-
-
-