<p>I'm currently playing with <code>bitcoinjs</code> (<a href="https://bitcoinjs.org/" rel="nofollow noreferrer">https://bitcoinjs.org/</a>) and I'm creating offline transactions that I broadcast over the network after.</p>

<p>I've successfully create my first transaction using this : <a href="https://medium.com/@orweinberger/how-to-create-a-raw-transaction-using-bitcoinjs-lib-1347a502a3a" rel="nofollow noreferrer">https://medium.com/@orweinberger/how-to-create-a-raw-transaction-using-bitcoinjs-lib-1347a502a3a</a></p>

<p>But it seems my transaction is stuck since I haven't put enough fee on it to get it mined.</p>

<p>How using a <code>var tx = new bitcoin.TransactionBuilder();</code> can I set the fee to a certain amount ? Is this calculated using a default value ?</p>

<p>Thank you for your help !</p>

<transaction-fees><bitcoinjs>
Specifying fee amount using bitcoinjs
Jérémy Seban
# Specifying fee amount using bitcoinjs

(Asked by: username_0 on 2017-08-08)

I'm currently playing with `bitcoinjs` (<https://bitcoinjs.org/>) and I'm creating offline transactions that I broadcast over the network after.

I've successfully create my first transaction using this : <https://medium.com/@orweinberger/how-to-create-a-raw-transaction-using-bitcoinjs-lib-1347a502a3a>

But it seems my transaction is stuck since I haven't put enough fee on it to get it mined.

How using a `var tx = new bitcoin.TransactionBuilder();` can I set the fee to a certain amount ? Is this calculated using a default value ?

Thank you for your help !

**Tags:** transaction-fees, bitcoinjs


---

## 0 answers

