bitcoin-core
bitcoin-core copied to clipboard
Fallbackfee is disabled
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.
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.
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>