ADON Command Line Core Wallet
Description of the ADON Server Process
The process to launch the Adon Core Wallet in command line is called ADON and can be found in the bin folder of the Adon core wallet.
The base command to launch the Adon core wallet is:
ADON-5.3.0/bin/ADON -daemon
The ADON process accepts multiple command line options, that can be listed (along with their description) using the following command:
ADON --help
When no options are specified, the ADON process will use default values for all parameters (such as date folder, log file, etc.), or the ones specified in the ADON.conf file.
The ADON server logs all its activities in the following file:
$ADON_HOME/debug.log
Start the ADON process automatically when the server starts
-
Create a service file
sudo nano /etc/systemd/system/ADON.service
-
Copy the following to the newly created ADON.service file. The elements in purple are to be modified according to the version of ADON, your path, and your username:
[Unit]
Description=ADON_MN
After=network.target [Service]
User=ADON
ExecStart=/home/ADON/ADON-5.3.2/bin/./ADON -daemon
ExecStop=/home/ADON/ADON-5.3.2/bin/./ADON-cli stop
TimeoutSec=15min
Type=forking
Restart=on-failure
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
PrivateDevices=true
[Install]
WantedBy=default.target
- Activate the service
sudo systemctl enable ADON
- Start it
sudo systemctl start ADON
Client Process
The process to access the Adon Core Wallet in command line is called ADON-cli and can be found in the bin folder of the Adon core wallet.
The following command line lists all the available options, sorted by theme:
ADON-5.3.0/bin/ADON-cli help
The help function can also be used to access the documentation page for a particular command line option. For example the following returns the help page for the getinfo command:
ADON-5.3.0/bin/ADON-cli help getinfo
Useful commands
- ADON-cli walletpassphrase MypassPhrase 999: unlocks the wallet for 999 seconds (for spending and staking)
- ADON-cli walletpassphrase MypassPhrase 9999999 true: unlocks the wallet for 9999999 seconds (for staking only)
- ADON-cli getstakingstatus: Displays all details pertaining to staking (helpful to debug staking issues)
- ADON-cli sendtoaddress "DMJRSsuU9zfyrvxVaAEFQqK4MxZg6vgeS6" 1.5: Sends 1.5 ADON to address DMJRSsuU9zfyrvxVaAEFQqK4MxZg6vgeS6