Post
Topic
Board Development & Technical Discussion
Topic OP
bitcoind "Insufficient funds", but funds are sufficient
by
pizzaman1337
on 02/06/2013, 22:07:46 UTC
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!