Tag Archives: show bitcoin address

Install and Run Bitcoin Core and Wallet in Ubuntu Server 16.04

  1. Install Bitcoin Core:
    • $ sudo apt-add-repository ppa:bitcoin/bitcoin
    • $ sudo apt-get update
    • $ sudo apt-get install bitcoind
  2. Run Bitcoin Node:
  3. Optional: start Bitcoin node at boot:
    • Run the following command to edit your crontab:
      • $ crontab -e
    • Scroll to the bottom of the file displayed and add the following line:
      • @reboot bitcoind -daemon
    • Save the file and exit.
  4. Verify if Bitcoin node is running:
    • $ bitcoin-cli getinfo
  5. Stop Bitcoin Core/Node process:
    • $ bitcoin-cli stop
  6. Create a new wallet address:
    • $ bitcoin-cli getnewaddress               # create an address in default account
    • $ bitcoin-cli getnewaddress “John”   # create an address in John account
    • (understanding account in wallet)
  7. Show current wallet addresses:
    • $ bitcoin-cli listreceivedbyaddress 0 true      # show all address from all accounts
    • $ bitcoin-cli getaddressesbyaccount “”     # show address in default account
    • $ bitcoin-cli getaddressesbyaccount “John”   # # show address in John account