<p>The <code>minRelayTxFee</code> (which despite the name is a feerate) on BCH is 1000 satoshis per kilobyte or 1 satoshi per byte.</p>

<p>BCH has a blocksize limit of 32 MB and has generally had only a very small portion of the blockspace used. The current 7-day average is 27 kB blocksize. It rarely even peaks to 400 kB.</p>

<p><a href="https://i.sstatic.net/K2fTP.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/K2fTP.png" alt="Graph of blocksize in the past 7 days via fork.lol showing low blockspace usage of BCH"></a> <sup>via fork.lol</sup></p>

<p>Given that BCH is currently using about 0.1% of its available blockspace, there is no need to pay a higher fee rate than <code>minRelayTxFee</code>.</p>

<p>Hence, I would recommend not to spend more time on research, but instead simply hardcode a fee rate of 1000 satoshis/kB. If you want to play it safe, you can go with 1500 or 2000 satoshis/kB. In the unlikely case that BCH traffic picks up enough to fill blocks, software support should probably improve at that time and you'll be able to reevaluate then.</p>

CC BY-SA 4.0
2019-01-16T02:59:40.450Z
2019-01-17T07:28:54.617Z
2019-01-17T07:28:54.617Z
Murch
<p>Not an expert of BCH but from what I can see from their JSON reference page such <code>estimatesmartfee</code> actually exists.</p>

<p><a href="https://www.bitcoincash.org/spec/JSON-RPC.html" rel="nofollow noreferrer">LINK</a></p>

CC BY-SA 4.0
2019-01-15T11:11:18.487Z
As far as I know, it's gone from latest node
Harry
CC BY-SA 4.0
2019-01-15T11:18:28.003Z
Seems you are right. This repo has no more that command available: https://github.com/Bitcoin-ABC/bitcoin-abc/blob/master/src/rpc/client.cpp#L112
You can maybe try to get such fee estimate from a real time API of BCH block explorer?
AG23
CC BY-SA 4.0
2019-01-15T11:10:12.133Z
2019-01-15T11:10:12.133Z
AG23
<p>I'm developing wallet system trading BTC, BCH and so on.
In BTC, I'm using <code>estimatesmartfee</code> API to calculate by transaction size and <code>relayfee</code> to guarantee minimum fee and it works well.
In BCH, though most of logic is same as BTC except <code>estimatesmartfee</code>, <code>estimatefee</code> is used in BCH.
However, as increasing transaction size by input UTXOs, <code>sendrawtransaction</code> is often failed because of shortage of fee.</p>

<p>How should it implemented properly? What is it affected?
I guess some reasons,
If I need to use API to get proper fee rete from some sites, what is that site?</p>

<bitcoin-cash><fee-estimation>
How is proper fee rate got on Bitcoin Cash
Harry
# How is proper fee rate got on Bitcoin Cash

(Asked by: username_0 on 2019-01-15)

I'm developing wallet system trading BTC, BCH and so on.
In BTC, I'm using `estimatesmartfee` API to calculate by transaction size and `relayfee` to guarantee minimum fee and it works well.
In BCH, though most of logic is same as BTC except `estimatesmartfee`, `estimatefee` is used in BCH.
However, as increasing transaction size by input UTXOs, `sendrawtransaction` is often failed because of shortage of fee.

How should it implemented properly? What is it affected?
I guess some reasons,
If I need to use API to get proper fee rete from some sites, what is that site?

**Tags:** bitcoin-cash, fee-estimation


---

## 2 answers

### Answer by username_1 on 2019-01-16. Score: 2 | Accepted answer

The `minRelayTxFee` (which despite the name is a feerate) on BCH is 1000 satoshis per kilobyte or 1 satoshi per byte.

BCH has a blocksize limit of 32 MB and has generally had only a very small portion of the blockspace used. The current 7-day average is 27 kB blocksize. It rarely even peaks to 400 kB.

[![Graph of blocksize in the past 7 days via fork.lol showing low blockspace usage of BCH](https://i.sstatic.net/K2fTP.png)](https://i.sstatic.net/K2fTP.png) via fork.lol

Given that BCH is currently using about 0.1% of its available blockspace, there is no need to pay a higher fee rate than `minRelayTxFee`.

Hence, I would recommend not to spend more time on research, but instead simply hardcode a fee rate of 1000 satoshis/kB. If you want to play it safe, you can go with 1500 or 2000 satoshis/kB. In the unlikely case that BCH traffic picks up enough to fill blocks, software support should probably improve at that time and you'll be able to reevaluate then.


---

### Answer by username_2 on 2019-01-15. Score: 0

Not an expert of BCH but from what I can see from their JSON reference page such `estimatesmartfee` actually exists.

[LINK](https://www.bitcoincash.org/spec/JSON-RPC.html)

> **Comments:**
> **username_0**: As far as I know, it's gone from latest node  
> **username_2**: Seems you are right. This repo has no more that command available: https://github.com/Bitcoin-ABC/bitcoin-abc/blob/master/src/rpc/client.cpp#L112 You can maybe try to get such fee estimate from a real time API of BCH block explorer?  

---

