Estimate smart fee returns an error

1

I am trying to get current fee for per transaction. So running command

bitcoin-cli estimatesmartfee 6

i am getting response lookl ike this

{
  "errors": [
    "Insufficient data or no feerate found"
  ],
  "blocks": 1
}

How ca I get real fee? Thanks!

Yur Gasparyan

Posted 2018-10-01T11:24:18.420

Reputation: 181

1Is the node fully synced?JBaczuk 2018-10-01T13:32:51.567

what do you mean saying fully synced? maybe noYur Gasparyan 2018-10-01T14:18:13.070

Has it downloaded and verified all of the blocks? You can check with $ bitcoin-cli getblockcountJBaczuk 2018-10-01T15:09:33.163

I got response - 1315692Yur Gasparyan 2018-10-01T19:52:17.243

looks like you're on testnet, there are 1414793 blocks so almost synced... https://live.blockcypher.com/btc-testnet/

JBaczuk 2018-10-01T19:53:29.087

yes I have on testnet! its full node ? and why i cant to get fee ?Yur Gasparyan 2018-10-01T20:03:21.130

Answers

1

It appears the node is not fully synced the entire blockchain. If your node is not fully synced, then it hasn't parsed the latest blocks to see what a reasonable tx fee would be for the current market. If it's not fully synced, then it might try to estimate based on old transactions, which you don't want, since they could be much lower (and your tx will never confirm), or much higher (and you overpay in fees).

JBaczuk

Posted 2018-10-01T11:24:18.420

Reputation: 6 172

how can I sync ?Yur Gasparyan 2018-10-01T20:50:16.923

I assume it is syncing, is the number increasing when you check $ bitcoin-cli getblockcount? It takes a while to download and verify all of the blocks, sometimes days or weeks depending on your machine specs.JBaczuk 2018-10-01T21:04:36.673

I just run this command and got response new number. but the command estimatesmartfee not working yet!Yur Gasparyan 2018-10-01T21:08:12.113

cool sounds like it's syncing, just need to be patient.JBaczuk 2018-10-01T21:38:19.620