<p>There's a site <i>Bitcoin Average</i> offering free or payed services depending on your usage that enables you to calculate the fee estimation for Bitcoin and other currencies for your website/web application.</p>

<p><a href="https://bitcoinaverage.com/" rel="nofollow noreferrer">Bitcoin Average</a></p>

<p>A variety of fee estimation services have been developed to help users navigate the fee market you can find info here:</p>

<p><a href="https://www.lopp.net/bitcoin-information/fee-estimates.html" rel="nofollow noreferrer">Bitcoin Transaction Fee Estimates</a></p>

CC BY-SA 4.0
2017-12-02T11:36:10.523Z
2020-02-22T14:47:16.577Z
2020-02-22T14:47:16.577Z
Denja
<p>I have a website where the users can send and withdraw funds using Bitcoin, I'd like to give them the chance of set their own custom fee (Low, medium and high) instead of the site to choose a fixed fee or than allow bitcoind to choose it.. </p>

<p>For it, after read and investigate, I've seen that bitcoind have a json-rpc call with the name of ''estimatefee'' which allow us to calculate in real time the fee for the transaction appears on the specified blocks.</p>

<p>I guess that for a high it should be checking the fee in the next 2 blocks, for a normal fee in the next 12 blocks and for a low fee in the next 25 blocks, I've saved the obtained results and I Have comparate them with the data provided by Blockcypher's API: <code>curl https://api.blockcypher.com/v1/btc/main</code> , which it give us a higher fee on the low priority than in the medium, this is weird for me, but except that the rest of the data provided are quite inferior to those that I Have obtained, which makes me think that maybe I am making the calculation of an incorrect way (as all the fees I have obtained are at least the double than the one provided by Blockcypher).</p>

<p>And here is the data obtained from bitcoind:</p>

<pre><code>bitcoin-cli estimatefee 25
0.00198478

bitcoin-cli estimatefee 12
0.00265746

bitcoin-cli estimatefee 2
0.00352903
</code></pre>

<p>And here is the data from Blockcypher:</p>

<pre><code>"high_fee_per_kb": 174625,
"medium_fee_per_kb": 83628,
"low_fee_per_kb": 90769,
</code></pre>

<p>I haven't found many information related with this, if someone could help me, I would be grateful.</p>

<p>Thanks in advance</p>

<bitcoind><transaction-fees><json-rpc>
How to calculate low/medium/high fee transaction fee?
John Graham
# How to calculate low/medium/high fee transaction fee?

(Asked by: username_0 on 2017-07-27)

I have a website where the users can send and withdraw funds using Bitcoin, I'd like to give them the chance of set their own custom fee (Low, medium and high) instead of the site to choose a fixed fee or than allow bitcoind to choose it.. 
For it, after read and investigate, I've seen that bitcoind have a json-rpc call with the name of ''estimatefee'' which allow us to calculate in real time the fee for the transaction appears on the specified blocks.
I guess that for a high it should be checking the fee in the next 2 blocks, for a normal fee in the next 12 blocks and for a low fee in the next 25 blocks, I've saved the obtained results and I Have comparate them with the data provided by Blockcypher's API: curl https://api.blockcypher.com/v1/btc/main , which it give us a higher fee on the low priority than in the medium, this is weird for me, but except that the rest of the data provided are quite inferior to those that I Have obtained, which makes me think that maybe I am making the calculation of an incorrect way (as all the fees I have obtained are at least the double than the one provided by Blockcypher).
And here is the data obtained from bitcoind:
bitcoin-cli estimatefee 25
0.00198478

bitcoin-cli estimatefee 12
0.00265746

bitcoin-cli estimatefee 2
0.00352903

And here is the data from Blockcypher:
"high_fee_per_kb": 174625,
"medium_fee_per_kb": 83628,
"low_fee_per_kb": 90769,

I haven't found many information related with this, if someone could help me, I would be grateful.
Thanks in advance

**Tags:** bitcoind, transaction-fees, json-rpc


---

## 1 answers

### Answer by username_1 on 2017-12-02. Score: 0

There's a site *Bitcoin Average* offering free or payed services depending on your usage that enables you to calculate the fee estimation for Bitcoin and other currencies for your website/web application.

[Bitcoin Average](https://bitcoinaverage.com/)

A variety of fee estimation services have been developed to help users navigate the fee market you can find info here:

[Bitcoin Transaction Fee Estimates](https://www.lopp.net/bitcoin-information/fee-estimates.html)


---

