Generate a new Monero address (wallet)

The generation of a new Monero address is super simple, just use

monero-wallet-cli

and personally create your new address.
And for those of you, which do not have “monero-wallet-cli” command or even do not know what is this, check out our howtos here:

  1. Install Ubuntu 16 LTS (comming soon)
  2. Building from source a Monero node under Ubuntu 16 LTS

Go to your directory where is the monero-wallet-cli binary and execute the following command:

srv@local: cd ~/monero/build/release/bin
srv@local:~/monero/build/release/bin$ ./monero-wallet-cli
This is the command line monero wallet. It needs to connect to a monero
daemon to work correctly.

Monero 'Helium Hydra' (v0.11.1.0-master-a03d34f)
Logging to ./monero-wallet-cli.log
Specify wallet file name (e.g., MyWallet). If the wallet doesn't exist, it will be created.
Wallet file name (or Ctrl-C to quit): mycryptomonero
No wallet found with that name. Confirm creation of new wallet named: mycryptomonero
(Y/Yes/N/No): Y
Generating new wallet...
Enter a new password for the wallet: 
Confirm password: 
List of available languages for your wallet's seed:
0 : Deutsch
1 : English
2 : Español
3 : Français
4 : Italiano
5 : Nederlands
6 : Português
7 : русский язык
8 : 日本語
9 : 简体中文 (中国)
10 : Esperanto
11 : Lojban
Enter the number corresponding to the language of your choice: 1
Generated new wallet: 44sEYMFqd8WMcsx5WcjY9WTYyYnBjE8o1DivymU457CwievE6yNuoWARULgDsn9AK24sUwAWa2Jr3SavgnD7a7V7QfBqifZ
View key: 61c3f248516175896bda32c85fa36452081ba79aecde962ea199d5e0ffb3080d
**********************************************************************
Your wallet has been generated!
To start synchronizing with the daemon, use the "refresh" command.
Use the "help" command to see the list of available commands.
Use "help <command>" to see a command's documentation.
Always use the "exit" command when closing monero-wallet-cli to save 
your current session's state. Otherwise, you might need to synchronize 
your wallet again (your wallet keys are NOT at risk in any case).


NOTE: the following 25 words can be used to recover access to your wallet. Write them down and store them somewhere safe and secure. Please do not store them in your email or on file storage services outside of your immediate control.

voice imitate acquire zoom gambit sack dwelt goggles
banjo vowels jetting muffin axis shyness sieve zebra
together elephant joking foxy quick doggy toffee unrest sack
**********************************************************************
Starting refresh...
Refresh done, blocks received: 0                                
Untagged accounts:
          Account               Balance      Unlocked balance                 Label
 *       0 44sEYM        0.000000000000        0.000000000000       Primary account
----------------------------------------------------------------------------------
          Total        0.000000000000        0.000000000000
Currently selected account: [0] Primary account
Tag: (No tag assigned)
Balance: 0.000000000000, unlocked balance: 0.000000000000
Background refresh thread started
[wallet 44sEYM]:

This sequence of numbers and alphabets

44sEYMFqd8WMcsx5WcjY9WTYyYnBjE8o1DivymU457CwievE6yNuoWARULgDsn9AK24sUwAWa2Jr3SavgnD7a7V7QfBqifZ

is your public Monery address, which could be used to receive Monero coins. Monero has also a view key:

61c3f248516175896bda32c85fa36452081ba79aecde962ea199d5e0ffb3080d

which can be used ONLY to view balances (In fact this key could be used to generate a new Monero wallet address, which has read only capabilities of your original wallet address – this is useful when you save your original keys offline and you just want to check balances on an online box).
On Line 9 (highlighted) you enter the name of your wallet, if new it will be created.
On Line 11 (highlighted) expected to confirm creation of new wallet with the name you entered in Line 9.
On Line 28 (highlighted) List of available languages for your wallet’s seed – the words, which could be used to recover access to your wallet.

After generating the address two things must be done:

  1. Backup your Monero wallet file, which is placed in the same directory where the monero-wallet-cli is:
    srv@local:~/monero/build/release/bin$ ls -altr 
    total 55228
    drwxrwxr-x 12 ubuntu ubuntu     4096 Mar 14 13:36 ..
    -rwxrwxr-x  1 ubuntu ubuntu  4212176 Mar 14 13:38 monero-blockchain-export
    -rwxrwxr-x  1 ubuntu ubuntu  4440496 Mar 14 13:38 monero-blockchain-import
    -rwxrwxr-x  1 ubuntu ubuntu 10222816 Mar 14 13:39 monero-gen-trusted-multisig
    -rwxrwxr-x  1 ubuntu ubuntu  9776408 Mar 14 13:40 monerod
    -rwxrwxr-x  1 ubuntu ubuntu 11004464 Mar 14 13:40 monero-wallet-cli
    -rwxrwxr-x  1 ubuntu ubuntu 11387912 Mar 14 13:40 monero-wallet-rpc
    -rw-------  1 ubuntu ubuntu     1005 Apr 25 01:14 mycryptomonero.keys
    -rw-rw-r--  1 ubuntu ubuntu     7269 Apr 25 01:21 monerod.log
    -rw-------  1 ubuntu ubuntu     8845 Apr 25 01:28 monero-wallet-cli.log
    -rw-------  1 ubuntu ubuntu  5463073 Apr 25 01:28 mycryptomonero
    drwxrwxr-x  2 ubuntu ubuntu     4096 Apr 25 01:28 .
    

    So you must backup the two files starting with your Monero wallet name (you entered above): “mycryptomonero” and “mycryptomonero.keys”

  2. Backup your password for the private key!

* Open existing wallet.

And available commands.
You can open your existing wallet when asked for the wallet file name enter the name “mycryptomonero” (the file name is expected to be in the same directory as the monero-wallet-cli) and then enter the password. And if you enter “help” you can see all the available commands of the wallet program “monero-wallet-cli”

srv@local:~/monero/build/release/bin$ ./monero-wallet-cli
This is the command line monero wallet. It needs to connect to a monero
daemon to work correctly.

Monero 'Helium Hydra' (v0.11.1.0-master-a03d34f)
Logging to ./monero-wallet-cli.log
Specify wallet file name (e.g., MyWallet). If the wallet doesn't exist, it will be created.
Wallet file name (or Ctrl-C to quit): mycryptomonero
Wallet and key files found, loading...
Wallet password: 
Opened wallet: 44sEYMFqd8WMcsx5WcjY9WTYyYnBjE8o1DivymU457CwievE6yNuoWARULgDsn9AK24sUwAWa2Jr3SavgnD7a7V7QfBqifZ
**********************************************************************
Use the "help" command to see the list of available commands.
Use "help <command>" to see a command's documentation.
**********************************************************************
Starting refresh...
Refresh done, blocks received: 0                                
Untagged accounts:
          Account               Balance      Unlocked balance                 Label
 *       0 44sEYM        0.000000000000        0.000000000000       Primary account
----------------------------------------------------------------------------------
          Total        0.000000000000        0.000000000000
Currently selected account: [0] Primary account
Tag: (No tag assigned)
Balance: 0.000000000000, unlocked balance: 0.000000000000
Background refresh thread started
[wallet 44sEYM]: help
Commands: 
  account
    account new <label text with white spaces allowed>
    account switch <index> 
    account label <index> <label text with white spaces allowed>
    account tag <tag_name> <account_index_1> [<account_index_2> ...]
    account untag <account_index_1> [<account_index_2> ...]
    account tag_description <tag_name> <description>
  address [ new <label text with white spaces allowed> | all | <index_min> [<index_max>] | label <index> <label text with white spaces allowed>]
  address_book [(add ((<address> [pid <id>])|<integrated address>) [<description possibly with whitespaces>])|(delete <index>)]
  balance [detail]
  bc_height
  check_reserve_proof <address> <signature_file> [<message>]
  check_spend_proof <txid> <signature_file> [<message>]
  check_tx_key <txid> <txkey> <address>
  check_tx_proof <txid> <address> <signature_file> [<message>]
  donate [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] <amount> [<payment_id>]
  encrypted_seed
  export_key_images <file>
  export_multisig_info <filename>
  export_outputs <file>
  export_raw_multisig_tx <filename>
  fee
  finalize_multisig <string> [<string>...]
  get_description
  get_reserve_proof (all|<amount>) [<message>]
  get_spend_proof <txid> [<message>]
  get_tx_key <txid>
  get_tx_note <txid>
  get_tx_proof <txid> <address> [<message>]
  help [<command>]
  import_key_images <file>
  import_multisig_info <filename> [<filename>...]
  import_outputs <file>
  incoming_transfers [available|unavailable] [verbose] [index=<N1>[,<N2>[,...]]]
  integrated_address [<payment_id> | <address>]
  locked_transfer [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] <addr> <amount> <lockblocks> [<payment_id>]
  make_multisig <threshold> <string1> [<string>...]
  password
  payment_id
  payments <PID_1> [<PID_2> ... <PID_N>]
  prepare_multisig
  refresh
  rescan_bc
  rescan_spent
  save
  save_bc
  save_watch_only
  seed
  set <option> [<value>]
  set_daemon <host>[:<port>]
  set_description [free text note]
  set_log <level>|{+,-,}<categories>
  set_tx_note <txid> [free text note]
  show_transfer <txid>
  show_transfers [in|out|pending|failed|pool] [index=<N1>[,<N2>,...]] [<min_height> [<max_height>]]
  sign <file>
  sign_multisig <filename>
  sign_transfer <file>
  spendkey
  start_mining [<number_of_threads>] [bg_mining] [ignore_battery]
  status
  stop_mining
  submit_multisig <filename>
  submit_transfer
  sweep_all [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] <address> [<payment_id>]
  sweep_below <amount_threshold> [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] <address> [<payment_id>]
  sweep_single [<priority>] [<ring_size>] <key_image> <address> [<payment_id>]
  sweep_unmixable
  transfer [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] <address> <amount> [<payment_id>]
  transfer_original [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] <address> <amount> [<payment_id>]
  unspent_outputs [index=<N1>[,<N2>,...]] [<min_amount> [<max_amount>]]
  verify <filename> <address> <signature>
  viewkey
  wallet_info

* For a maximum security you could do the following

In fact you could do the following:

  1. Install a fresh copy of Ubuntu
  2. Build from source the Monero software
  3. Unplug the system from the Internet
  4. Generate the wallet
  5. Backup the wallet
  6. Generate a wallet from your view key to check balances only

Thus your wallet will never be exposed on an online machine!

* It is absolutely necessary your crypto wallet addresses to have a password for security reasons and DO NOT FORGET IT you cannot recover the password therefore your access to the wallet! If you lose your password you lose ALL your funds in the address! It’s better to write it down somewhere on a safe physical place.

Send coins in Groestlcoin network with Groestlcoin Core (cli)

Here are the steps needed to make a secure transfer of your funds under linux distro of Ubuntu. To be able to transfer money securely without any 3rd party involved (no online wallet) just funds from your personal Groestlcoin wallet address on your computer to another Groestlcoin wallet address we need a running Groestlcoin node using Groestlcoin Core tool:

groestlcoin-cli

The cli tool for managing the Groestlcoin wallets.

STEP 1) Install and run an Groestlcoin node with groestlcoind

Here you can follow this tutorial – Running a Groestlcoin node (wallet cli) from source under Ubuntu 16 LTS.
The Groestlcoin node must be running and synced with the Groestlcoin network.

STEP 2) Check how many funds you have in your Groestlcoin wallet address

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaccounts
{
  "": 0.00000000,
  "myfunds": 527.36851543,
  "test": 0.00000000
}

So we have

myfunds account

with 527.36851543 Groestlcoin coins, an account could have multiple Groestlcoin addresses and a wallet could have multiple accounts (as you can see from the example above) , so we can check the amount of coins on each address associated with the account:

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaddressgroupings
[
  [
    [
      "FabGnY2ovd3jnddgyjiltd456hdfjklFBs", 
      527.36851543, 
      "myfunds"
    ]
  ]
]

You can see there are 527.36851543 Groestlcoin coins in our account “myfunds” in the Groestlcoin wallet and the Groestlcoin address is FabGnY2ovd3jnddgyjiltd456hdfjklFBs

STEP 3) Unlock your wallet

The wallet is encrypted with a password, so before doing any transactions you must unlock the account for a given amount of time with:

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli walletpassphrase "my_wallet_pass" 300

So your wallet will stay unlocked for 300 seconds, this is the purpose of the third parameter.

STEP 4) Send the amount you like to the Groestlcoin wallet address you like

BE CAREFUL the operation is irreversible, if you put wrong address or unknown or unexciting one, you’ll lose your Groestlcoin coins!!
We want to send 2 coins to “FmjjtD2cejkrjeghrfhhaerGDFGdjfhffe”

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli sendfrom "myfunds" "FmjjtD2cejkrjeghrfhhaerGDFGdjfhffe" 2
3293d8f8acc2689ff54fe70a28da24cd313c324f1f335e80d22add08588d73d1

If you see the transaction ID, it means the you have executed the command successfully and you can check the status of the transaction.

STEP 5) Check the transaction status.

The status of your transaction could be checked in sites offering Groestlcoin block explorer sites like

https://groestlsight.groestlcoin.org/

Here is the screenshot of the status page:

main menu
Transaction details in https://groestlsight.groestlcoin.org/

You can see there are two addresses and a fee, which is just a “0.0000226GRS”, the transaction 2 GRS has (S), which means “Spent” and the 0.04326832 GRS (U), which means unspent, but it was needed to complete the transaction. So you spent 2.0000226 GRS to transfer 2.00 GRS.
And verify the other address has the coins:

srv@local:~/groestlcoin-core/bin$ 
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaddressgroupings
[
  [
    [
      "FmjjtD2cejkrjeghrfhhaerGDFGdjfhffe", 
      2.00000000, 
      "mytestwallet"
    ]
  ]
]

Here is the whole output of the “/groestlcoin-cli” tool:

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaccounts
{
  "": 0.00000000,
  "myfunds": 527.36851543,
  "test": 0.00000000
}
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli walletpassphrase "my_wallet_pass" 300
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli sendfrom "myfunds" "FmjjtD2cejkrjeghrfhhaerGDFGdjfhffe" 2
3293d8f8acc2689ff54fe70a28da24cd313c324f1f335e80d22add08588d73d1
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaddressgroupings
[
  [
    [
      "FabGnY2ovd3jnddgyjiltd456hdfjklFBs", 
      525.32522451, 
      "myfunds"
    ], 
    [
      "Fjqkflgitg459tdfgjjkrthurDFGFhghhj", 
      0.04326832
    ]
  ]
]
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaccounts
{
  "": 0.00000000,
  "myfunds": 525.36849283,
  "test": 0.00000000
}

Also you might want to delete your shell history because of the saved password phrase!

Troubleshooting

If you get

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli sendfrom "myfunds" "FmjjtD2cejkrjeghrfhhaerGDFGdjfhffe" 2
error code: -13
error message:
Error: Please enter the wallet passphrase with walletpassphrase first.

You must unlock your account! If you did it but still the error persisted you probably have to increase the unlock time. Look STEP 2)

* All Groestlcoin addresses in this howto are changed for security reasons.

Backup and restore your Groestlcoin address wallet (cli)

In real world backups are lifesavers and in crypto world the backups are even more important! Backup everything about your crypto wallet and node install!
If you have followed our howtos (Running a Groestlcoin node (wallet cli) from source under Ubuntu 16 LTS and “Building from source a Groestlcoin node (cli only) under Ubuntu 16 LTS“) you would have the correct software for managing the Groestlcoin wallet and all the paths bellow will be accurate.

STEP 1) Backup of Groestlcoin wallet

If you want to backup up your Groestlcoin (addresses) wallet you need to find your

wallet.dat

file the place for it is in your

“home directory/.groestlcoin/wallet.dat”

So first stop the Groestlcoin Core program with one of the following command:

  • By sending kill signal:
    srv@local:~$ killall groestlcoind
    
  • OR in your screen or shell of the running program ctrl+c will stop it

After you wait for the Groestlcoin Core to exit you can check the logs in

~/.groestlcoin/debug.log

2018-04-12 01:00:36 UpdateTip: new best=0000000000026458ea4ffb8d781179393f9f339bf3504936d1a6eb05d1a6d433 height=2041250 version=0x20000000 log2_work=61.378625 tx=2730651 date='2018-04-12 01:00:16' progress=1.000000 cache=0.7MiB(2279tx)
2018-04-12 01:00:52 tor: Thread interrupt
2018-04-12 01:00:52 msghand thread exit
2018-04-12 01:00:52 addcon thread exit
2018-04-12 01:00:52 torcontrol thread exit
2018-04-12 01:00:52 opencon thread exit
2018-04-12 01:00:52 scheduler thread interrupt
2018-04-12 01:00:52 Shutdown: In progress...
2018-04-12 01:00:52 net thread exit
2018-04-12 01:00:52 Dumped mempool: 3e-06s to copy, 0.001741s to dump
2018-04-12 01:00:52 Shutdown: done

So now you can copy to a secure place your

“home directory/.groestlcoin/wallet.dat

In our real world example the path is “/home/ubuntu/.groestlcoin/wallet.dat”

srv@local:~$ cp /home/ubuntu/.groestlcoin/wallet.dat /home/ubuntu/backups/cryptos/groestlcoin-wallet.dat

STEP 2) Restore Groestlcoin wallet

To restore our wallet from a backup you also need the Groestlcoin wallet program (Groestlcoin Core – the Groestlcoin node) not to be running, so if it is started just follow the STEP 1) to stop it. Then override

“home directory/.groestlcoin/wallet.dat

with your backup file (the name of the file must be “wallet.dat”!!! It is important because your backup file could have any name). So in our real world example we override our /home/ubuntu/.groestlcoin/wallet.dat with our backup:

srv@local:~$ cp /home/ubuntu/backups/cryptos/groestlcoin-wallet.dat /home/ubuntu/.groestlcoin/wallet.dat

And then start your Groestlcoin wallet program with option

-rescan

this option is required when you first start the Groestlcoin Core with your backup wallet to “Rescan the block chain for missing wallet transactions on startup”, if you do not start the program with “-rescan” you could have strange numbers for your funds when checking with “groestlcoin-cli”

srv@local:~$ cd ~/groestlcoin-core/bin
srv@local:~/groestlcoin-core/bin$ ./groestlcoind -rescan &> groestlcoind.log

You could check debug.log and you’ll see the transactions for your wallet

2018-04-12 01:21:07 Using obfuscation key for /home/ubuntu/.groestlcoin/blocks/index: 0000000000000000
2018-04-12 01:21:07 Opening LevelDB in /home/ubuntu/.groestlcoin/chainstate
2018-04-12 01:21:07 Opened LevelDB successfully
2018-04-12 01:21:07 Using obfuscation key for /home/ubuntu/.groestlcoin/chainstate: 0000000000000000
2018-04-12 01:21:26 LoadBlockIndexDB: last block file = 8
2018-04-12 01:21:26 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=75749, size=48230812, heights=1965243...2041250, time=2018-02-15...2018-04-12)
2018-04-12 01:21:26 Checking all blk files are present...
2018-04-12 01:21:26 LoadBlockIndexDB: transaction index disabled
2018-04-12 01:21:27 LoadBlockIndexDB: hashBestChain=0000000000026458ea4ffb8d781179393f9f339bf3504936d1a6eb05d1a6d433 height=2041250 date=2018-04-12 01:00:16 progress=0.999999
2018-04-12 01:21:27 init message: Rewinding blocks...
2018-04-12 01:21:34 init message: Verifying blocks...
2018-04-12 01:21:34 Verifying last 6 blocks at level 3
2018-04-12 01:21:34 [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2018-04-12 01:21:34 No coin database inconsistencies in last 7 blocks (16 transactions)
2018-04-12 01:21:34  block index           26840ms
2018-04-12 01:21:34 init message: Loading wallet...
2018-04-12 01:21:34 nFileVersion = 2130300
2018-04-12 01:21:34 Keys: 0 plaintext, 205 encrypted, 205 w/ metadata, 205 total
2018-04-12 01:21:34  wallet                   11ms
2018-04-12 01:21:34 init message: Rescanning...
2018-04-12 01:21:34 Rescanning last 2041250 blocks (from block 0)...
2018-04-12 01:21:34 AddToWallet c5ed5ff668503412eed4568c3b226523e2ff6db2a1b3740f0aea5250a3c36e7b  
2018-04-12 01:21:34 AddToWallet fc99017780dbafaf5723196351d4adaaee9991c35391ecb013ed74bbb57a44a5  
2018-04-12 01:21:34 AddToWallet 52f883907385dd8205273ebdc987e88ed71f0e894b57df1a6a2f2c9fcb546922  
2018-04-12 01:21:34 AddToWallet a8b84a2d0b1114c4f2d710a45e0e13dfab547512b1b775a9617fa41809b75926  
2018-04-12 01:21:34 AddToWallet 0d4f1d8e9f6c42b4dbaaf33fe4fb33efc5f646df8724f1e66ab54ccbedbb84f1  
2018-04-12 01:21:34 AddToWallet 1a2984f011a6ff5d44c549b0f6da44b3a1654e2ccbb9f897f5106f88ed931498  
.....
.....
2018-04-12 01:21:46  rescan                12622ms
2018-04-12 01:21:46 setKeyPool.size() = 99
2018-04-12 01:21:46 mapWallet.size() = 415
2018-04-12 01:21:46 mapAddressBook.size() = 4
2018-04-12 01:21:46 mapBlockIndex.size() = 2041278
2018-04-12 01:21:46 nBestHeight = 2041250
2018-04-12 01:21:46 init message: Loading addresses...
2018-04-12 01:21:46 Imported mempool transactions from disk: 1 successes, 0 failed, 0 expired
2018-04-12 01:21:46 torcontrol thread start
2018-04-12 01:21:46 Loaded 2994 addresses from peers.dat  40ms
2018-04-12 01:21:46 init message: Loading banlist...
2018-04-12 01:21:46 init message: Starting network threads...
2018-04-12 01:21:46 net thread start
2018-04-12 01:21:46 addcon thread start
2018-04-12 01:21:46 init message: Done loading
2018-04-12 01:21:46 dnsseed thread start
2018-04-12 01:21:46 opencon thread start
2018-04-12 01:21:46 msghand thread start
2018-04-12 01:21:47 receive version message: /Groestlcoin:2.13.3/: version 70015, blocks=2041268, us=18.220.186.120:42996, peer=0

Now if you check your balances they must be properly reported (correct numbers of coins):

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaccounts
{
  "": 0.00000000,
  "myfunds": 527.36851543,
  "tests": 0.00000000
}

Generate a new Groestlcoin address (wallet) and list accounts and addresses

The generation of a new Groestlcoin address is super simple, just use

groestlcoin-cli

and personally create your new address. DO NOT TRUST any online or website or any other Internet source to generate your Groestlcoin wallet address for you. DO IT YOURSELF with the official software from the official site!
And for those of you, which do not have “groestlcoin-cli” command or even do not know what is this, check out our howtos here:

  1. Install Ubuntu 16 LTS (comming soon)
  2. Running a Groestlcoin node (wallet cli) from source under Ubuntu 16 LTS

Go to your directory where is the groestlcoin-cli binary and execute the following command (the path and directories in the following examples are based on the above howto):

srv@local:~$ cd ~/groestlcoin-core/bin/
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli getnewaddress mygroestlcoin
FeNFjh81VDJvZrdvi8EotKuJ8es8cCz7bZ
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli encryptwallet "my secret pass"
wallet encrypted; Groestlcoin server stopping, restart to run with encrypted wallet. The keypool has been flushed and a new HD seed was generated (if you are using HD). You need to make a new backup.

The groestlcoind daemon was stopped and you need to start it again if you want to make transactions or to get your balance.
With Groestlcoin Core Wallet you can create an account, which could be a group of groestlcoin addresses (this is a groestlcoin address: “FeNFjh81VDJvZrdvi8EotKuJ8es8cCz7bZ”) or just use the default with no name of the account.
It is important to encrypt your wallet with a password, because if the wallet is unprotected with a password anyone could steal it! Then enter a password for your wallet protection is the second command above!

This sequence of numbers and alphabets

FeNFjh81VDJvZrdvi8EotKuJ8es8cCz7bZ

is your public Groestlcoin address, which could be used to receive Groestlcoins – the coins of the Groestlcoin network.

After generating the address two things must be done:

  1. Backup your Groestlcoin wallet address file (wallet.dat), which is placed in your home directory under “.groestlcoin”:
    srv@local:~/groestlcoin-core/bin$ ls -altr ~/.groestlcoin/
    srv@local:~$ ls -altr ~/.groestlcoin/
    total 476
    -rw------- 1 ubuntu ubuntu      0 Mar 27 21:41 .lock
    -rw------- 1 ubuntu ubuntu      0 Mar 27 21:41 db.log
    -rw------- 1 ubuntu ubuntu     37 Mar 27 21:41 banlist.dat
    drwx------ 3 ubuntu ubuntu   4096 Mar 27 22:18 blocks
    drwxr-xr-x 7 ubuntu ubuntu   4096 Mar 28 01:25 ..
    -rw------- 1 ubuntu ubuntu 145650 Mar 28 14:16 peers.dat
    -rw------- 1 ubuntu ubuntu     17 Mar 28 14:16 mempool.dat
    -rw------- 1 ubuntu ubuntu  16625 Mar 28 14:16 fee_estimates.dat
    -rw------- 1 ubuntu ubuntu  73728 Mar 28 14:16 wallet.dat
    -rw------- 1 ubuntu ubuntu      5 Mar 28 14:17 groestlcoin.pid
    -rw------- 1 ubuntu ubuntu     75 Mar 28 14:17 .cookie
    drwxrwxr-x 5 ubuntu ubuntu   4096 Mar 28 14:17 .
    drwx------ 2 ubuntu ubuntu   4096 Mar 28 14:18 chainstate
    drwx------ 2 ubuntu ubuntu   4096 Mar 28 14:18 database
    -rw------- 1 ubuntu ubuntu 206800 Mar 28 14:27 debug.log
    srv@local:~$ 
    

    The best practice is to backup all the files under “~/.groestlcoin/”, too!

  2. Backup your password for the private key!

Accounts

List all accounts in the wallet

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli listaccounts
{
  "": 0.00000000,
  "mygroestlcoin": 0.00000000
}

List all Groestlcoin addresses in a given account:

srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli getaddressesbyaccount ""
[
  "FYM6aAQdmg6tziT4trPb777xNfPaaUnfqp", 
  "FamX8GYBuLFkLSAbyZ7M55vFW6AECoYKEV", 
  "Fp9PwAgfTqaF3aJ4zGGLjGKP7iEMdsrR3Z"
]
srv@local:~/groestlcoin-core/bin$ ./groestlcoin-cli getaddressesbyaccount "mygroestlcoin"
[
  "FeNFjh81VDJvZrdvi8EotKuJ8es8cCz7bZ", 
  "FrrnHESU8Utqk1ZjhQZjpWwc5cjKgHwCaS"
]

* It is absolutely necessary your crypto wallet addresses to have a password for security reasons and DO NOT FORGET IT you cannot recover the password therefore your access to the wallet! If you lose your password you lose ALL your funds in the address! It’s better to write it down somewhere on a safe physical place. You can print it on a sheet of paper and place it somewhere safe!

* All available commands with “groestlcoin-cli

groestlcoin-cli help
== Blockchain ==
getbestblockhash
getblock "hash" ( verbose )
getblockchaininfo
getblockcount
getblockhash index
getblockheader "hash" ( verbose )
getchaintips
getdifficulty
getmempoolancestors txid (verbose)
getmempooldescendants txid (verbose)
getmempoolentry txid
getmempoolinfo
getrawmempool ( verbose )
gettxout "txid" n ( includemempool )
gettxoutproof ["txid",...] ( blockhash )
gettxoutsetinfo
preciousblock "hash"
verifychain ( checklevel numblocks )
verifytxoutproof "proof"

== Control ==
getinfo
getmemoryinfo
help ( "command" )
stop

== Generating ==
generate numblocks ( maxtries )
generatetoaddress numblocks address (maxtries)

== Mining ==
getblocktemplate ( TemplateRequest )
getmininginfo
getnetworkhashps ( blocks height )
prioritisetransaction <txid> <priority delta> <fee delta>
submitblock "hexdata" ( "jsonparametersobject" )

== Network ==
addnode "node" "add|remove|onetry"
clearbanned
disconnectnode "node" 
getaddednodeinfo ( "node" )
getconnectioncount
getnettotals
getnetworkinfo
getpeerinfo
listbanned
ping
setban "ip(/netmask)" "add|remove" (bantime) (absolute)
setnetworkactive true|false

== Rawtransactions ==
createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,"data":"hex",...} ( locktime )
decoderawtransaction "hexstring"
decodescript "hex"
fundrawtransaction "hexstring" ( options )
getrawtransaction "txid" ( verbose )
sendrawtransaction "hexstring" ( allowhighfees )
signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )

== Util ==
createmultisig nrequired ["key",...]
estimatefee nblocks
estimatepriority nblocks
estimatesmartfee nblocks
estimatesmartpriority nblocks
signmessagewithprivkey "privkey" "message"
validateaddress "groestlcoinaddress"
verifymessage "groestlcoinaddress" "signature" "message"

== Wallet ==
abandontransaction "txid"
addmultisigaddress nrequired ["key",...] ( "account" )
addwitnessaddress "address"
backupwallet "destination"
dumpprivkey "groestlcoinaddress"
dumpwallet "filename"
getaccount "groestlcoinaddress"
getaccountaddress "account"
getaddressesbyaccount "account"
getbalance ( "account" minconf includeWatchonly )
getnewaddress ( "account" )
getrawchangeaddress
getreceivedbyaccount "account" ( minconf )
getreceivedbyaddress "groestlcoinaddress" ( minconf )
gettransaction "txid" ( includeWatchonly )
getunconfirmedbalance
getwalletinfo
importaddress "address" ( "label" rescan p2sh )
importmulti '[<json import requests>]' '<json options>' 
importprivkey "groestlcoinprivkey" ( "label" rescan )
importprunedfunds
importpubkey "pubkey" ( "label" rescan )
importwallet "filename"
keypoolrefill ( newsize )
listaccounts ( minconf includeWatchonly)
listaddressgroupings
listlockunspent
listreceivedbyaccount ( minconf includeempty includeWatchonly)
listreceivedbyaddress ( minconf includeempty includeWatchonly)
listsinceblock ( "blockhash" target-confirmations includeWatchonly)
listtransactions ( "account" count from includeWatchonly)
listunspent ( minconf maxconf  ["address",...] )
lockunspent unlock ([{"txid":"txid","vout":n},...])
move "fromaccount" "toaccount" amount ( minconf "comment" )
removeprunedfunds "txid"
sendfrom "fromaccount" "togroestlcoinaddress" amount ( minconf "comment" "comment-to" )
sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] )
sendtoaddress "groestlcoinaddress" amount ( "comment" "comment-to" subtractfeefromamount )
setaccount "groestlcoinaddress" "account"
settxfee amount
signmessage "groestlcoinaddress" "message"
walletlock
walletpassphrase "passphrase" timeout
walletpassphrasechange "oldpassphrase" "newpassphrase"

Send coins in Ethereum network with geth console

Here are the steps needed to make a secure transfer of your funds under linux distro of Ubuntu. To be able to transfer money safely without any 3rd party involved (no online wallet) just funds from your personal Ethereum wallet address on your computer to another Ethereum wallet address we need the official command line interface for running a full ethereum node:

geth

STEP 1) Install and run an Ethereum node with geth

Here you can follow this tutorial – “Running an Ethereum node from source under Ubuntu 16 LTS”.
The Ethereum node must be running and synced with the Ethereum network.

STEP 2) Attach to the console of geth tool

ubuntu@srv.local:~/go-ethereum/build/bin$ ./geth attach
Welcome to the Geth JavaScript console!

instance: Geth/v1.8.2-unstable-b574b577/linux-amd64/go1.9.4
coinbase: 0x30d8810bb1a74e808b46788b2316bd93cf056517
at block: 5172179 (Wed, 28 Feb 2018 15:59:17 UTC)
 datadir: /home/ubuntu/.ethereum
 modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0

>

STEP 3) Check how many funds you have in your Ethereum wallet address

While you are in the geth console paste the following:

> web3.fromWei(eth.getBalance('30d8810bb1a74e808b46788b2316bd93cf056517'), "ether")
0.105
> 

You can see there are 0.105 Ethers in the Ethereum wallet address 30d8810bb1a74e808b46788b2316bd93cf056517, replace the address with your public address.

STEP 3) Unlock your account

As you remember your wallet private key is encrypted with a password, so before you can use the private key to send funds you must decrypt the key with:

> personal.unlockAccount('30d8810bb1a74e808b46788b2316bd93cf056517', '<your_password>',300)
true

So your key will stay dectrypted for 300 seconds, this is the purpose of the third parameter. It can be omitted.

STEP 4) Send the amount you like to the Ethereum wallet address you like

, BE CAREFUL the operation is irreversible, if you put wrong address or unknown or unexciting one, you’ll lose your Ether coins!!
Every transaction has a cost, which is computed by the miners. That’s why the gas price is dynamic. The price is determined by the miner of a block and it can change from block to block. You can check the gas price here on http://ethgasstation.info. Determining and computing the price in Ether is very difficult there could be at least 3 new howtos about that. The best and the easiest way is just to check a site (like http://ethgasstation.info) for the average gas price in dollars and when executing a transaction of sending Ethereum funds make sure the same amount of Ether in dollars will stay in your wallet address to be used for the gas.

> eth.sendTransaction({from: '30d8810bb1a74e808b46788b2316bd93cf056517', to: '9009a960fb38c379813a4a2e26c5b94909dc8599', value: web3.toWei(0.104, "ether")})
"0x31b4f213f88f2831756bd9cc37b12e80c6dfe413a3b3423659ca91be352961fc"

If you see the transaction ID, it means the you have executed the command successfully and you can check the status of the transaction.

STEP 5) Check the transaction status.

The status of your transaction could be checked in sites offering Ethereum block explorer sites like

https://etherscan.io/

Here is the check URL for our transaction:

https://etherscan.io/tx/0x31b4f213f88f2831756bd9cc37b12e80c6dfe413a3b3423659ca91be352961fc

Here is the screenshot of the status page:

main menu
Transaction details in https://etherscan.io

And verify the other address has the coins:

ubuntu@ip-172-31-30-78:~/go-ethereum/build/bin$ ./geth attach
Welcome to the Geth JavaScript console!

instance: Geth/v1.8.2-unstable-b574b577/linux-amd64/go1.9.4
coinbase: 0x30d8810bb1a74e808b46788b2316bd93cf056517
at block: 5195693 (Sun, 04 Mar 2018 15:40:58 UTC)
 datadir: /home/ubuntu/.ethereum
 modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0

> web3.fromWei(eth.getBalance('9009a960fb38c379813a4a2e26c5b94909dc8599'), "ether")
0.104
>

And how many coins remained at “30d8810bb1a74e808b46788b2316bd93cf056517”:

> web3.fromWei(eth.getBalance('30d8810bb1a74e808b46788b2316bd93cf056517'), "ether")
0.000811

So as you see the Gas was 0.000189 Ethers as you can see in the block explorer page.

Here is the whole output of the “geth” tool:

> ubuntu@ip-172-31-30-78:~/go-ethereum/build/bin$ ./geth attach
Welcome to the Geth JavaScript console!

instance: Geth/v1.8.2-unstable-b574b577/linux-amd64/go1.9.4
coinbase: 0x30d8810bb1a74e808b46788b2316bd93cf056517
at block: 5193986 (Sun, 04 Mar 2018 08:48:41 UTC)
 datadir: /home/ubuntu/.ethereum
 modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0

> web3.fromWei(eth.getBalance('30d8810bb1a74e808b46788b2316bd93cf056517'), "ether")
0.105
> personal.unlockAccount('30d8810bb1a74e808b46788b2316bd93cf056517', '<the_password_of_the_address>',300)
true
> eth.sendTransaction({from: '30d8810bb1a74e808b46788b2316bd93cf056517', to: '9009a960fb38c379813a4a2e26c5b94909dc8599', value: web3.toWei(0.104, "ether")})
"0x31b4f213f88f2831756bd9cc37b12e80c6dfe413a3b3423659ca91be352961fc"
> web3.fromWei(eth.getBalance('30d8810bb1a74e808b46788b2316bd93cf056517'), "ether")
0.000811
>