Transfer BTC. InsufficientFunds
See original GitHub issueWhen I try to create a transaction, it gives an error that there are not enough funds on the balance: bit.exceptions.InsufficientFunds: Balance 54022 is less than 60800 (including fee).
key.send([(address, 0.0001, 'btc')], fee=200)
0.0001 btc = 10000 satoshi. So total is 30000 satoshi (0.0003 btc).
Why im getting error? I noticed that when transferring the indicated amount, it is added to the whole balance and is trying to transfer it.
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (1 by maintainers)
Top Results From Across the Web
Why am I receiving an insufficient funds error?
If you see the Insufficient funds error message when you try to send a transaction, it means you are trying to send more...
Read more >My blockchain wallet shows some balance. However ... - Quora
My blockchain wallet shows some balance. However, when I try to transfer, it says insufficient balance. What should I do? All related (35)....
Read more >Blockchain.com - Insufficient Funds Error? - Bitcoin Forum
This problem will repest whenever bitcoin transaction fees spikes increase and you may lose some of your money if you do not pay...
Read more >115005144649--Insufficient-funds - Support : HitBTC
"Insufficient funds" · You haven't transferred the necessary amount of funds to your spot account. Please check your balance on the Account page....
Read more >Advanced Trade error messages - Coinbase Help
Insufficient Funds : This means you entered an order amount that's more than your current balance for that asset. Lower your order amount...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I solved the problem. It would be convenient if this function was developed. If necessary, I can provide a code. I would be grateful if you contribute to the project.
The
feeargument normally denotes a rate (satoshis per byte). So for a simple transaction with e.g. one input and output the size will be around 250 bytes. Setting the fee rate to 200 would result in around 250bytes * 200 satoshis/byte = 50000 satoshis for the fee.You don’t have enough funds to cover for both the amount you send and the cost of fee with that fee rate.
Beware that an absolute fee value of 200 satoshis is currently very low and may not confirm in time, whereas a fee rate of 200 satoshis/byte would probably confirm with the next block.