<p>When using the <a href="https://bitgo.github.io/bitgo-docs/#send-coins-to-address" rel="nofollow noreferrer"><code>sendCoins</code></a> call from the BitGo API, you can use one of three parameters to specify fees for the transactions (using more than one will result in an error, as they are not compatible).</p>

<ul>
<li><code>feeTxConfirmTarget</code>: You specify the count of blocks you would like your transaction to confirm in, between 1 and 1000. This parameter probably fits your description best. Subjectively, I'd set it to somewhere between 6 and 12 blocks for "medium priority".</li>
<li><code>feeRate</code>: If you know exactly what fee rate you want to use, you can specify it with this parameter in <code>satoshis/kilobyte</code>.</li>
<li><code>fee</code>: You can specify the exact amount of satoshis that you want to provide as a fee. Unless you know for sure how many bytes your transaction will have, this is difficult to pick correctly. (For completeness, not recommended for your usecase.)</li>
</ul>

<p>If you use none of the above, the fee rate will be picked automatically. As far as I recall, it will default to <code>feeTxConfirmTarget: 2</code>, i.e. aim for confirmation in two blocks.</p>

CC BY-SA 3.0
2017-09-27T05:52:57.310Z
2017-09-27T05:52:57.310Z
Murch
<p>You can get up-to-date Bitcoin transaction fees from <a href="http://bitcoinfees.21.co/" rel="nofollow noreferrer">bitcoinfees.21.co</a>.</p>

<p>They also have an <a href="http://bitcoinfees.21.co/api" rel="nofollow noreferrer">API</a>.</p>

<p>If you are a coder, you can use the API to provide a dropdown list allowing your members/users to select the priority they want to use when making a transaction.</p>

CC BY-SA 3.0
2017-09-27T05:13:22.623Z
2017-09-30T01:25:43.593Z
2017-09-30T01:25:43.593Z
Kuya
<p>BitGo.com gives you the options of 'high priority', 'medium priority', 'low priority' and 'very low priority' for setting miners fee when sending bitcoin with their web wallet.</p>

<p>I am using their API to send bitcoins to different addresses. How do I calculate the miners fee (corresponding to any of the various priorities) to pass to the API when sending bitcoins.</p>

<p>Simply put, if I want to send 0.01BTC to an address with medium priority, how do I calculate the miners fee for medium priority (and the others) with their API or any other API.</p>

<blockchain.info><transaction-fees><api><bitgo>
How do I calculate the miners fee for my transaction using BitGo.com API?
mrpoba
# How do I calculate the miners fee for my transaction using BitGo.com API?

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

BitGo.com gives you the options of 'high priority', 'medium priority', 'low priority' and 'very low priority' for setting miners fee when sending bitcoin with their web wallet.

I am using their API to send bitcoins to different addresses. How do I calculate the miners fee (corresponding to any of the various priorities) to pass to the API when sending bitcoins.

Simply put, if I want to send 0.01BTC to an address with medium priority, how do I calculate the miners fee for medium priority (and the others) with their API or any other API.

**Tags:** blockchain.info, transaction-fees, api, bitgo


---

## 2 answers

### Answer by username_1 on 2017-09-27. Score: 0 | Accepted answer

When using the [`sendCoins`](https://bitgo.github.io/bitgo-docs/#send-coins-to-address) call from the BitGo API, you can use one of three parameters to specify fees for the transactions (using more than one will result in an error, as they are not compatible).

* `feeTxConfirmTarget`: You specify the count of blocks you would like your transaction to confirm in, between 1 and 1000. This parameter probably fits your description best. Subjectively, I'd set it to somewhere between 6 and 12 blocks for "medium priority".
* `feeRate`: If you know exactly what fee rate you want to use, you can specify it with this parameter in `satoshis/kilobyte`.
* `fee`: You can specify the exact amount of satoshis that you want to provide as a fee. Unless you know for sure how many bytes your transaction will have, this is difficult to pick correctly. (For completeness, not recommended for your usecase.)

If you use none of the above, the fee rate will be picked automatically. As far as I recall, it will default to `feeTxConfirmTarget: 2`, i.e. aim for confirmation in two blocks.


---

### Answer by username_2 on 2017-09-27. Score: 1

You can get up-to-date Bitcoin transaction fees from [bitcoinfees.21.co](http://bitcoinfees.21.co/).

They also have an [API](http://bitcoinfees.21.co/api).

If you are a coder, you can use the API to provide a dropdown list allowing your members/users to select the priority they want to use when making a transaction.


---

