Post
Topic
Board Announcements (Altcoins)
Re: [ANN][DCR] Decred - Hybrid PoW/PoS | btcsuite Devs | Tons of New Features | Go
by
bspus
on 03/04/2016, 18:20:23 UTC
No that doesn't work gives me an error
Code:
getbalance command: wrong number of params (expected between 0 and 3, received 8) (code: ErrNumParams)
Usage:
  getbalance ("account" minconf=1 "balancetype")


Why does getbalance get an error that it receives 8 parameters? The parameters are 3 as in the example. You actually type the command as given with the star, zero and "all". Only change your user and password
cause you should quote the *, eg:
dcrctl --wallet getbalance "*" 0 all


That worked, thank you both

Weird... I don't need the quotes on the star for mine to work

Edit: Now that I think about it, its probably the wallet names or something that is represented by the star, so it gets replaced somewhere in the code and it breaks, unless its around quotes.
As a habit I avoid names that could break under such circumstances to avoid exactly such problems