Skip to content

Commit f65e55d

Browse files
committed
Add guide for primary address and view-only wallet setup
1 parent 74b5abf commit f65e55d

1 file changed

Lines changed: 117 additions & 0 deletions

File tree

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# Generate a Monero primary address and obtain its private view key using monero-wallet-cli
2+
3+
## Overview
4+
5+
Note: This tutorial includes instructions for Windows, macOS, and Linux. Skip any steps that do not apply to your operating system.
6+
7+
In this tutorial, you will generate a Monero primary address and retrieve its associated private view key. These are commonly used when setting up a store or service that needs to receive Monero payments and monitor incoming transactions.
8+
9+
To accomplish this, we will use the Monero command-line wallet `monero-wallet-cli` along with the Monero daemon `monerod`. These tools are required to create the address and keys and to communicate with the Monero network during setup.
10+
11+
To begin, open a terminal window (Mac/Linux) or command prompt (Windows) and type the following commands:
12+
13+
```bash
14+
# LINUX: Download the Linux 64-bit command line client and extract it
15+
wget https://downloads.getmonero.org/linux64
16+
tar -xvf linux64
17+
cd monero-x86_64-linux-gnu-*
18+
19+
# MAC: Download the Mac command line client and extract it
20+
wget https://downloads.getmonero.org/mac64
21+
tar -xvf mac64
22+
cd monero-x86_64-apple-*
23+
24+
# WINDOWS: Create a new folder with Windows File Explorer, and use your web browser to download the following file to the new folder
25+
https://downloads.getmonero.org/win64
26+
27+
# WINDOWS: Double click the Monero zip file that has been downloaded to extract it. Then open Command Prompt. Use the 'cd' command to navigate to your new folder
28+
cd monero-x86_64-w64-*
29+
30+
# Run the Monero daemon. It will sync with the network and display the message "You are now synchronized with the network. You may now start monero-wallet-cli" when it is completely up to date with the network
31+
# LINUX/MAC:
32+
./monerod
33+
# WINDOWS:
34+
monerod.exe
35+
36+
# The job of the Monero daemon is to monitor the network for new transactions. You now need to open a new terminal window and run the Monero command line wallet, which will communicate with the Monero daemon that you've just started.
37+
# LINUX/MAC:
38+
./monero-wallet-cli
39+
# WINDOWS:
40+
monero-wallet-cli.exe
41+
42+
# Follow the instructions displayed to create a new wallet. When told the 25 word SEED, write this down on paper and keep it in a very safe place. Even if you forget your passwords, the 25 word SEED can be used to recreate your wallet from any machine and have complete control over your Monero funds. Sample output from the Monero wallet is below:
43+
44+
# Important: The wallet address, seed phrase, and keys shown below were generated solely for this tutorial and contain no funds. Do not reuse these values.
45+
46+
Specify wallet file name (e.g., MyWallet). If the wallet doesn't exist, it will be created.
47+
Wallet file name (or Ctrl-C to quit): wallet
48+
No wallet found with that name. Confirm creation of new wallet named: wallet
49+
(Y/Yes/N/No): Y
50+
Generating new wallet...
51+
Enter a password for your new wallet: ********
52+
Confirm Password: ********
53+
List of available languages for your wallet's seed:
54+
0 : Deutsch
55+
1 : English
56+
2 : Español
57+
3 : Français
58+
4 : Italiano
59+
5 : Nederlands
60+
6 : Português
61+
7 : русский язык
62+
8 : 日本語
63+
9 : 简体中文 (中国)
64+
10 : Esperanto
65+
11 : Lojban
66+
Enter the number corresponding to the language of your choice: 1
67+
Generated new wallet: 45zK2WxTctfc7h6qFVwoN4eJH1Wcu9spwDk2cCuivssre9sCu7uVEEmCziCkYvGyDwHHM1KNyrbid7zvWZ5XKzmJ5yMPTcE
68+
View key: 8df34dd4b56bd13a69544d849bd0bce2a675bfc600d9e776ad801a6e9867580d
69+
**********************************************************************
70+
Your wallet has been generated!
71+
To start synchronizing with the daemon, use the "refresh" command.
72+
Use the "help" command to see a simplified list of available commands.
73+
Use "help all" command to see the list of all available commands.
74+
Use "help <command>" to see a command's documentation.
75+
Always use the "exit" command when closing monero-wallet-cli to save
76+
your current session's state. Otherwise, you might need to synchronize
77+
your wallet again (your wallet keys are NOT at risk in any case).
78+
79+
80+
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.
81+
82+
arsenic ammo eating moisture fountain giant stunning eternal
83+
neon ritual hookup wipeout zones launching voted sovereign
84+
kiwi locker audio react inquest benches oyster present fountain
85+
**********************************************************************
86+
The daemon is not set up to background mine.
87+
With background mining enabled, the daemon will mine when idle and not on battery.
88+
Enabling this supports the network you are using, and makes you eligible for receiving new monero
89+
Do you want to do it now? (Y/Yes/N/No): : n
90+
Background mining not enabled. Set setup-background-mining to 1 to change.
91+
If you are new to Monero, type "welcome" for a brief overview.
92+
Starting refresh...
93+
Refresh done, blocks received: 1
94+
Untagged accounts:
95+
Account Balance Unlocked balance Label
96+
* 0 45zK2W 0.000000000000 0.000000000000 Primary account
97+
------------------------------------------------------------------------------------
98+
Total 0.000000000000 0.000000000000
99+
Currently selected account: [0] Primary account
100+
Tag: (No tag assigned)
101+
Balance: 0.000000000000, unlocked balance: 0.000000000000
102+
Background refresh thread started
103+
104+
# Type "address" to see your public wallet address. You can give this address to anyone, and they will be able to send you Monero. However, NEVER give anyone your 25 word SEED.
105+
106+
[wallet 45zK2W]: address
107+
0 45zK2WxTctfc7h6qFVwoN4eJH1Wcu9spwDk2cCuivssre9sCu7uVEEmCziCkYvGyDwHHM1KNyrbid7zvWZ5XKzmJ5yMPTcE Primary address
108+
109+
# Type "viewkey" to see your public and private view key
110+
111+
[wallet 45zK2W]: viewkey
112+
Wallet password: ********
113+
secret: 8df34dd4b56bd13a69544d849bd0bce2a675bfc600d9e776ad801a6e9867580d
114+
public: 1f562cd2ab81d247b6a5492b619d166157b30ca3d60ffe29d79ffd3fde1bbd2c
115+
```
116+
117+
Congratulations! You have generated a Monero primary address along with its private view key, which can be used to create a view wallet and track incoming payments for your store.

0 commit comments

Comments
 (0)