Author

Topic: bitcoind "Insufficient funds", but funds are sufficient (Read 3092 times)

member
Activity: 77
Merit: 10
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.
newbie
Activity: 37
Merit: 0
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!
Jump to: