Back to Blog
blockchain
4 min read

Bumping RBF Enabled Transaction Fees using BDK-Kotlin

A quick guide on how to use the BDK-Kotlin 0.8.0 library to bump Replace-By-Fee(RBF) enabled transaction fees.

Tang Yetong
Tang Yetong
Full Stack Developer and former Data Analyst Intern at Fivetran with a background in government digital services and blockchain technology.

A quick guide on how to use the BDK-Kotlin 0.8.0 library to bump Replace-By-Fee(RBF) enabled transaction fees. You can use the Padawan Wallet and dev-kit open-source projects as reference.

TxBuilder

With the TxBuilder() you can create the transaciton as per usual.

var txBuilder = recipientList.fold(TxBuilder()) { builder, recipient -> builder.addRecipient(recipient.address, recipient.amount) } txBuilder = txBuilder.enableRbf() txBuilder = txBuilder.feeRate(satPerVbyte = feeRate) return txBuilder.finish(wallet)

As you can see we are just adding the recipient address and amount normally, while adding a .enableRBF() method. Creating the new transaction to replace that one will be covered in a different blog post since that is a whole separate issue with tons of UI etc.

Tags

BDK-Kotlin
Bitcoin
RBF
Tutorial
Tang Yetong

Tang Yetong

Full Stack Developer and former Data Analyst Intern at Fivetran with a background in government digital services and blockchain technology.

Related Articles

Featured
5 mins

How to contribute to Padawan Wallet

blockchain

A quick summary of what the Padawan Wallet is, why it exists and how you can contribute to it!

Bitcoin
Open Source
BDK-Kotlin
+1
Read Article: How to contribute to Padawan Wallet
Featured
8 mins

Summer of Bitcoin 2022

blockchain

This is the last week of the Summer of Bitcoin (SoB) 2022 internship and what a journey it has been.

SoB
Internship
Bitcoin
+1
Read Article: Summer of Bitcoin 2022
3 mins

Enabling transactions to use Replace-By-Fee using BDK-Kotlin

blockchain

A quick guide on how to use the BDK-Kotlin 0.7.0 library to send transactions with the Replace-By-Fee(RBF) feature enabled.

BDK-Kotlin
Bitcoin
RBF
+1
Read Article: Enabling transactions to use Replace-By-Fee using BDK-Kotlin