<p><code>estimatesmartfee</code> expects the number of blocks you want the tx confirmed in as the parameter, not the amount of BTC you are sending.</p>

<p>Try <code>estimatesmartfee 5</code> to get an estimate for confirmation in the next 5 blocks, for instance.</p>

CC BY-SA 4.0
2018-06-06T08:11:38.987Z
thanks, but I followed your command but it still throws some error `{
  "errors": [
    "Insufficient data or no feerate found"
  ],
  "blocks": 1
}`
Thomson Ignesious
CC BY-SA 4.0
2018-06-06T08:15:04.833Z
Your node has not seen enough blocks to make an estimate yet, or does not have the feerate configured correctly
Raghav Sood
CC BY-SA 4.0
2018-06-06T08:04:25.227Z
2018-06-06T08:04:25.227Z
Raghav Sood
<p>I am trying to get transaction fee for sending all btc to another account.
I use estimatesmartfee to get tx fee, I have total btc amount of 0.0195btc, so I pass 0.0195, but I get <code>JSON integer out of range (code -1)</code></p>

<bitcoind><transaction-fees><json-rpc><fee-estimation>
Bitcoind estimatesmartfee
Thomson Ignesious
# Bitcoind estimatesmartfee

(Asked by: username_0 on 2018-06-06)

I am trying to get transaction fee for sending all btc to another account.
I use estimatesmartfee to get tx fee, I have total btc amount of 0.0195btc, so I pass 0.0195, but I get `JSON integer out of range (code -1)`

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


---

## 1 answers

### Answer by username_1 on 2018-06-06. Score: 2

`estimatesmartfee` expects the number of blocks you want the tx confirmed in as the parameter, not the amount of BTC you are sending.

Try `estimatesmartfee 5` to get an estimate for confirmation in the next 5 blocks, for instance.

> **Comments:**
> **username_0**: thanks, but I followed your command but it still throws some error `{   "errors": [     "Insufficient data or no feerate found"   ],   "blocks": 1 }`  
> **username_1**: Your node has not seen enough blocks to make an estimate yet, or does not have the feerate configured correctly  

---

