question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Transfer BTC. InsufficientFunds

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
deliugardcommented, May 22, 2020

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.

1reaction
bjarnemagnussencommented, May 22, 2020

The fee argument 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found