Bitcoin Forum
July 27, 2017, 03:07:59 PM *
News: BIP91 seems stable: there's probably only slightly increased risk of confirmations disappearing. You should still prepare for Aug 1.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: minconf=nnn don't works in CLI?  (Read 1804 times)
bitcoinex
Sr. Member
****
Offline Offline

Activity: 350


probiwon.com


View Profile WWW
August 05, 2010, 10:22:50 PM
 #1

Code:
bitcoin@s7:~$ ./bitcoin-0.3.8/bin/64/bitcoin getreceivedbylabel mylabel minconf=10
error: type mismatch
bitcoin@s7:~$ ./bitcoin-0.3.8/bin/64/bitcoin getreceivedbylabel mylabel
0.000000000000000

or I did not understand the format of command?

New bitcoin lottery: probiwon.com
- Может, ты ещё и в Невидимую Руку Рынка веруешь? - Зачем же веровать в то, что можно наблюдать непосредственно?
1501168079
Hero Member
*
Offline Offline

Posts: 1501168079

View Profile Personal Message (Offline)

Ignore
1501168079
Reply with quote  #2

1501168079
Report to moderator
Decentralized search
Search for products or services and get paid for it
Join pre-ICO
25 July. 50% discount
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1501168079
Hero Member
*
Offline Offline

Posts: 1501168079

View Profile Personal Message (Offline)

Ignore
1501168079
Reply with quote  #2

1501168079
Report to moderator
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2730


View Profile
August 05, 2010, 10:32:47 PM
 #2

It's a bug with Bitcoin's JSON-RPC client, I think. I get that for all commands with more than one parameter. Try using some other client (JSON-RPC PHP, for example) to do it.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
knightmb
Sr. Member
****
Offline Offline

Activity: 308


Timekoin - Save Electricity, Don't Waste It!


View Profile WWW
August 05, 2010, 10:57:28 PM
 #3

Code:
bitcoin@s7:~$ ./bitcoin-0.3.8/bin/64/bitcoin getreceivedbylabel mylabel minconf=10
error: type mismatch
bitcoin@s7:~$ ./bitcoin-0.3.8/bin/64/bitcoin getreceivedbylabel mylabel
0.000000000000000

or I did not understand the format of command?
Should be

bitcoin getreceivedbylabel "Your Address" 0

Your label must be in "" if it has a space in it and the next sytax is the minimum number of confirmations to count towards the total.

So if that command spits back 10.00.... for example and you changed the last number to 4000 (meaning, only count transactions that have 4000 confirmations or more) then you might get back a 0.000... for example if you have no transactions with that many confirmations.

bitcoinex
Sr. Member
****
Offline Offline

Activity: 350


probiwon.com


View Profile WWW
August 06, 2010, 12:36:48 AM
 #4

Code:
bitcoin@s7:~$ ./bitcoin-0.3.8/bin/64/bitcoin getreceivedbylabel mylabel minconf=10
error: type mismatch
bitcoin@s7:~$ ./bitcoin-0.3.8/bin/64/bitcoin getreceivedbylabel mylabel
0.000000000000000

or I did not understand the format of command?
Should be

bitcoin getreceivedbylabel "Your Address" 0

Your label must be in "" if it has a space in it and the next sytax is the minimum number of confirmations to count towards the total.

So if that command spits back 10.00.... for example and you changed the last number to 4000 (meaning, only count transactions that have 4000 confirmations or more) then you might get back a 0.000... for example if you have no transactions with that many confirmations.

Smiley

execve do not let me spoil label with a spaces

New bitcoin lottery: probiwon.com
- Может, ты ещё и в Невидимую Руку Рынка веруешь? - Зачем же веровать в то, что можно наблюдать непосредственно?
bitcoinex
Sr. Member
****
Offline Offline

Activity: 350


probiwon.com


View Profile WWW
August 06, 2010, 12:41:43 AM
 #5

It's a bug with Bitcoin's JSON-RPC client, I think. I get that for all commands with more than one parameter. Try using some other client (JSON-RPC PHP, for example) to do it.

No, console client is better now: http://bitcointalk.org/index.php?topic=703.msg7709#msg7709

I don't think it would be difficult to fix this problem.

New bitcoin lottery: probiwon.com
- Может, ты ещё и в Невидимую Руку Рынка веруешь? - Зачем же веровать в то, что можно наблюдать непосредственно?
LZ
Staff
Legendary
*
Offline Offline

Activity: 1568


P2P Cryptocurrency


View Profile
February 15, 2011, 05:38:25 PM
 #6

Will it be fixed for CLI sometime? I tested with 0.3.20 and got the same result.

My OpenPGP fingerprint: 5099EB8C0F2E68C63B4ECBB9A9D0993E04143362
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
February 15, 2011, 07:07:14 PM
 #7

The help text is misleading; never pass the "foo=" part.

Somebody could teach bitcoin to accept either  getreceivedbyaccount foo 10    or    getreceivedbyaccount address=foo minconf=10
... but maybe we should just change how the help text shows default arguments or improve the documentation.

How often do you get the chance to work on a potentially world-changing project?
bitcoinex
Sr. Member
****
Offline Offline

Activity: 350


probiwon.com


View Profile WWW
February 16, 2011, 01:09:02 PM
 #8

The help text is misleading; never pass the "foo=" part.

Somebody could teach bitcoin to accept either  getreceivedbyaccount foo 10    or    getreceivedbyaccount address=foo minconf=10

First option is better if you do not intend to use GNU options format '--xxx'. (And it is easier to implement on C.)

But for the convenience of future users make better use a GNU options. Then can be written a good autocomplete for shell.

Quote
... but maybe we should just change how the help text shows default arguments or improve the documentation.

New bitcoin lottery: probiwon.com
- Может, ты ещё и в Невидимую Руку Рынка веруешь? - Зачем же веровать в то, что можно наблюдать непосредственно?
LZ
Staff
Legendary
*
Offline Offline

Activity: 1568


P2P Cryptocurrency


View Profile
February 17, 2011, 12:08:24 PM
 #9

I think it should be [confirmations] instead of [minconf=1]. Thanks.

My OpenPGP fingerprint: 5099EB8C0F2E68C63B4ECBB9A9D0993E04143362
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!