Bitcoin Forum
May 29, 2024, 05:36:43 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind "Insufficient funds", but funds are sufficient  (Read 3072 times)
pizzaman1337 (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
June 02, 2013, 10:07:46 PM
 #1

I've been working on a bitcoin project and have encountered a frustrating problem. Take a look (from bash):

Code:
$ bitcoind sendmany "rawr_1" '{"1Lg55PomZKuD7AM3YhYTLrKKKE8jAZJDnw": 0.017198017, "16ZpzqkBzh4NB64v9USYgJ6eYEGKB4sbNr": 0.017501984}' 0 "rawr_1"
error: {"code":-6,"message":"Insufficient funds"}
$ bitcoind getbalance "rawr_1"
0.03500000
$ echo "0.017198017 + 0.017501984" | bc
.034700001

As you can see, the account "rawr_1" should actually have enough funds to send the transaction. Is bitcoind attempting to add a fee but not telling me about it? How can I know what the fee "should" be before attempting to send it?

And, why isn't bitcoind giving me a more descriptive error, if "insufficient funds" is really "funds sufficient, but not enough to cover the fee of x BTC"

Thanks!
evilpete
Member
**
Offline Offline

Activity: 77
Merit: 10



View Profile
June 04, 2013, 05:35:24 AM
 #2

Once you add the 0.0005 (what you've set for paytxfee by default if you haven't changed it) you get:

.034700001+0.0005 = .035200001

That's more than your starting balance.  Or I need more coffee.

First they ignore you, then they laugh at you, then they fight you, then you win.
- Mahatma Gandhi
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!