Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallbackfee is disabled #122

Open
sahityakumarsuman opened this issue Aug 12, 2020 · 2 comments
Open

Fallbackfee is disabled #122

sahityakumarsuman opened this issue Aug 12, 2020 · 2 comments

Comments

@sahityakumarsuman
Copy link

When i try to send btc at this address with this method it provides me following error.

await wallet2.sendToAddress(
		'myzP8XPEW8mxxuT9dBFzxy9KUe4Vmsuz43',
		0.1,
		'sendtoaddress example',
    'Nemo From Example.com'
	);

RpcError: Fee estimation failed. Fallbackfee is disabled. Wait for a few blocks or enable -fallbackfee.

I am tired of new method updates in bitcoin-core neither there is proper documentation about it . Please help me in this.

previously wallet2.getBalance() method use to provide the default wallet balance of rpc client now when generateToAddress method is introduced in it we have to provide separate address for reward btc but how do I get to know about the balance of that address there is no method in it. Help me in this updated method had screwed my many of logics in production.

@sahityakumarsuman
Copy link
Author

my transaciton fees is coming -1 as shown in below

{ address: 'msnNujREhDarHHxJc84daPEPiyJkQDPxft',
  confirmations: 4194,
  amount: 0.00305175,
  height: 2169,
  blockHash:
   '448fd936c144cf5fbf725abd1caefddee9a7e33ab3e9a1af2d35f82dc719c98a',
  txHash:
   '610db5b71718110a9e45e68fca685b455b4563dcf0f2f04b3ae52bdfad56a1db',
  outIndex: 0,
  from_address: '',
  fees: -1 }

how I can set this fees correct, please help me get this right.

@grunklejp
Copy link

I'm not 100% sure what your problem is but its important to remember that these methods are just wrappers bitcoind's RPC methods which you can find documentation for here.

The easiest way to fix this problem is to just manually set your fall back fee in your bitcoin.conf file like so: fallbackfee=<your fallback fee>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants