Bitcoin Forum
September 27, 2018, 11:19:01 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: bitcoind "Insufficient funds", but funds are sufficient  (Read 2995 times)
pizzaman1337
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!
1538090341
Hero Member
*
Offline Offline

Posts: 1538090341

View Profile Personal Message (Offline)

Ignore
1538090341
Reply with quote  #2

1538090341
Report to moderator
1538090341
Hero Member
*
Offline Offline

Posts: 1538090341

View Profile Personal Message (Offline)

Ignore
1538090341
Reply with quote  #2

1538090341
Report to moderator
Make a difference with your Ether.
Donate Ether for the greater good.
SPRING.WETRUST.IO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538090341
Hero Member
*
Offline Offline

Posts: 1538090341

View Profile Personal Message (Offline)

Ignore
1538090341
Reply with quote  #2

1538090341
Report to moderator
1538090341
Hero Member
*
Offline Offline

Posts: 1538090341

View Profile Personal Message (Offline)

Ignore
1538090341
Reply with quote  #2

1538090341
Report to moderator
1538090341
Hero Member
*
Offline Offline

Posts: 1538090341

View Profile Personal Message (Offline)

Ignore
1538090341
Reply with quote  #2

1538090341
Report to moderator
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!