<p>You can’t estimate a fee without a mempool, so <code>blocksonly</code> mode will cause this failure. Explicitly you don’t download transactions with this turned on. </p>

CC BY-SA 4.0
2019-06-24T23:27:35.053Z
2019-06-24T23:27:35.053Z
Claris
<p>I am trying to send transaction using bitcoin-cli but I am constantly getting:</p>

<pre><code>admin@XXXX:~$ bitcoin-cli sendtoaddress "XXXXXXX" 0.1 "" "" false true 5 "ECONOMICAL"
error code: -4
error message:
Fee estimation failed. Fallbackfee is disabled. Wait a few blocks or enable -fallbackfee.
</code></pre>

<p>I do not wish to set up fallbackfee. I want my running bitcoind to estimate the fees based on what is currently going on in the network and based on my confirmation target (5 in this case)</p>

<p>Any idea what is going on and how fix this? Thanks!</p>

<p>P.S. My blockchain is fully synced.</p>

<p>EDIT: after some digging, can <code>blocksonly=1</code> option in my bitcoin.conf be blamed? Look at my mempool info</p>

<pre><code>bitcoin-cli getmempoolinfo
{
  "size": 0,
  "bytes": 0,
  "usage": 0,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000
}
</code></pre>

<p>such empty :(</p>

<transaction-fees><json-rpc><bitcoin-cli>
Bitcoin-cli cannot estimate fees
michnovka
# Bitcoin-cli cannot estimate fees

(Asked by: username_0 on 2019-06-24)

I am trying to send transaction using bitcoin-cli but I am constantly getting:
admin@XXXX:~$ bitcoin-cli sendtoaddress "XXXXXXX" 0.1 "" "" false true 5 "ECONOMICAL"
error code: -4
error message:
Fee estimation failed. Fallbackfee is disabled. Wait a few blocks or enable -fallbackfee.

I do not wish to set up fallbackfee. I want my running bitcoind to estimate the fees based on what is currently going on in the network and based on my confirmation target (5 in this case)
Any idea what is going on and how fix this? Thanks!
P.S. My blockchain is fully synced.
EDIT: after some digging, can blocksonly=1 option in my bitcoin.conf be blamed? Look at my mempool info
bitcoin-cli getmempoolinfo
{
  "size": 0,
  "bytes": 0,
  "usage": 0,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000
}

such empty :(

**Tags:** transaction-fees, json-rpc, bitcoin-cli


---

## 1 answers

### Answer by username_1 on 2019-06-24. Score: 3 | Accepted answer

You can’t estimate a fee without a mempool, so `blocksonly` mode will cause this failure. Explicitly you don’t download transactions with this turned on.


---

