1

Imagine I have a "stuck" transaction using Bitcoin Core (with correct BIP125 signalling), and I want to "unstuck" it using RBF.

Is there some RPC call for the correct fee calculation?

Meaning, is there a call that would help me with creating a transaction that will be accepted in a certain block target, given the current fee estimations? Ideally in the same way the GUI version already does it.

I know it is possible to calculate that using getmempoolentry (ancestorfees and ancestorsize) and estimatesmartfee, but that is non-trivial.

2
+25

If your transaction is from Bitcoin Core's wallet, you can use the bumpfee command. It should do the same thing that the GUI does in order to create a replacement transaction with a higher fee.

0

I think you can calculate fees manually by getting last block total fees divided on number of transactions in this block. Also you need to use summary amount of block transactions. It is not so hard to calculate it for your TX amount.

Then you can rebuild your "stuck" transaction with a new fee. And broadcast this new transaction through the network.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.