Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: icreator on December 24, 2013, 08:28:10 AM



Title: for new API - nil and none
Post by: icreator on December 24, 2013, 08:28:10 AM
for Bitcoin  developers

Please insert "nil" or "none" value in API

example:

=getbalance(nil,8) - returns the server's total available balance for minfonf=8

=sendmany(nil, {...}, 5) - send to many from the server's total available balance for minconf=5
=sendmany(from_addr, {...}, 5) - send to many from the "from_addr" for minconf=5

Now it not works 8^(

How I may get balance for total for mincomf=XX ??
only use listunspent(minconf) and summ in circle??
its bad


Title: Re: for new API - nil and none
Post by: kjj on December 24, 2013, 09:55:54 PM
Yeah, the wallet doesn't work the way you think it should.  You need to learn how it actually does work rather than wishing someone else would change it.