Bitcoin Forum
May 11, 2024, 07:57:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A simple question about command line  (Read 473 times)
Bungeebones (OP)
Full Member
***
Offline Offline

Activity: 178
Merit: 100



View Profile
April 23, 2014, 11: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 <address>


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

I've tried bitcoind -daemon getaccount <address>, bitcoind -daemon and getaccount "<address>" ( 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.
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715414221
Hero Member
*
Offline Offline

Posts: 1715414221

View Profile Personal Message (Offline)

Ignore
1715414221
Reply with quote  #2

1715414221
Report to moderator
1715414221
Hero Member
*
Offline Offline

Posts: 1715414221

View Profile Personal Message (Offline)

Ignore
1715414221
Reply with quote  #2

1715414221
Report to moderator
mcaizgk2
Member
**
Offline Offline

Activity: 66
Merit: 10


View Profile
April 24, 2014, 12:50:55 AM
 #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 ""
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!