Bitcoin Forum
May 02, 2024, 11:04:25 PM *
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.
1714691065
Hero Member
*
Offline Offline

Posts: 1714691065

View Profile Personal Message (Offline)

Ignore
1714691065
Reply with quote  #2

1714691065
Report to moderator
1714691065
Hero Member
*
Offline Offline

Posts: 1714691065

View Profile Personal Message (Offline)

Ignore
1714691065
Reply with quote  #2

1714691065
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714691065
Hero Member
*
Offline Offline

Posts: 1714691065

View Profile Personal Message (Offline)

Ignore
1714691065
Reply with quote  #2

1714691065
Report to moderator
1714691065
Hero Member
*
Offline Offline

Posts: 1714691065

View Profile Personal Message (Offline)

Ignore
1714691065
Reply with quote  #2

1714691065
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!