Author

Topic: A simple question about command line (Read 496 times)

member
Activity: 66
Merit: 10
April 23, 2014, 07:50:55 PM
#2
Run:
bitcoin-cli listaccounts
to get all the accounts for your wallet.

Then for each account call:
bitcoin-cli getaccountaddress accountName

The default account in your wallet has no description attached to it by default so unless you've modified it manually you can see its receiving address(es) by calling:
bitcoin-cli getaccountaddress ""
full member
Activity: 178
Merit: 100
April 23, 2014, 06:17:52 PM
#1
Please disregard - I tried one more thing - too obvious - and I got it figured out.

One has to actually ADD the account name - I thought it generated one for me. OOOPS!




I've got the bitcoind server running. I've got testnet configured to run in bitcoin.conf and running getinfo tells me it is.

I've generated a couple of addresses, one of which I used a testnet faucet to send BTC to.

The other address I used a different command that I thought would create an account at the same time (i.e. bitcoind -daemon getaddress).

It generated the address because I can get its private key with bitcoind -daemon dumpprivkey



The problem I'm having is I cannot get either address's account?

I've tried bitcoind -daemon getaccount
, bitcoind -daemon and getaccount "
" ( and everything else I could think of).

What am I missing?

If I understand it right the first one I created doesn't have an account yet but the second one should.
Jump to: