➖CLI Wallet
Introduction
The Pyrin CLI Wallet provides a powerful and flexible way to interact with the Pyrin network. This guide covers all technical operations necessary to set up and use the CLI wallet on your Windows machine.
Setting Up the CLI Wallet
Download and Install
Download Pyrin Core Files:
Visit the Pyrin GitHub repository and download the latest release for Windows.
Extract Files:
Extract the downloaded zip file to your desired location on your computer.
Create a Batch File:
Open Notepad and create a new file.
Add the following lines to set up the environment and start the Pyrin node:
Save the file as
start-pyrin.bat
in the same directory as the extracted files.
Run the Batch File:
Double-click
start-pyrin.bat
to start the Pyrin node.
Creating and Managing the Wallet
Create a New Wallet
Open Command Prompt:
Navigate to the directory where you extracted the files.
Run Wallet Creation Command:
For Windows:
Follow the on-screen instructions to set a password for your wallet.
Start the Wallet Daemon
Run the Wallet Daemon:
For Windows:
Request a New Wallet Address
Generate a New Address:
For Windows:
The command will output a new wallet address.
Sending Coins
Create a Batch File for Sending Coins:
Open Notepad and create a new file.
Add the following line, replacing
amount
andaddress
with the desired values:Save the file as
send-coins.bat
.
Run the Batch File:
Double-click
send-coins.bat
to send the specified amount of coins to the given address.
Checking Wallet Balance
Create a Batch File for Checking Balance:
Open Notepad and create a new file.
Add the following line:
Save the file as
check-balance.bat
.
Run the Batch File:
Double-click
check-balance.bat
to check your wallet balance.
Backup and Restore
Introduction
Backing up your Pyrin wallet is crucial to ensure that you can recover your funds in case of any data loss or hardware failure. This guide will help you back up and restore your Pyrin wallet using the CLI.
Backup
Backup Wallet Files
Locate Wallet Files:
Navigate to the directory where your Pyrin wallet files are stored. Typically, this is within the data directory specified during setup.
Identify Key Files:
The essential files to back up are:
keys.json
(contains your private keys)wallet.dat
(contains your wallet data)pyrin.conf
(contains your wallet configuration)
Copy Files to a Secure Location:
Copy these files to a secure location such as an external hard drive, USB stick, or cloud storage.
Export Seed Phrase
Export Seed Phrase Using CLI:
Open Command Prompt and navigate to the directory where your Pyrin wallet files are located.
Run the following command to export your seed phrase:
Write down the 24-word seed phrase and store it in a secure location.
Restore
Restore Using Wallet Files
Copy Backup Files to Data Directory:
Copy the backed-up
keys.json
,wallet.dat
, andpyrin.conf
files back to the data directory of your Pyrin wallet.
Start Wallet Daemon:
Open Command Prompt and navigate to the directory where your Pyrin wallet files are located.
Run the following command to start the wallet daemon:
Restore Using Seed Phrase
Open Command Prompt:
Navigate to the directory where your Pyrin wallet files are located.
Run Restore Command:
Use the following command to restore your wallet using the 24-word seed phrase:
Follow the on-screen instructions to enter your seed phrase and restore your wallet.
Additional Tips
Regular Backups:
Make regular backups of your wallet files to ensure that you have the latest version available in case of data loss.
Secure Storage:
Store your backups and seed phrase in multiple secure locations to mitigate the risk of loss or theft.
Password Protection:
Use strong, unique passwords for your wallet and backup files to enhance security.
By following these steps, you can ensure that your Pyrin wallet is securely backed up and can be restored whenever necessary.
Troubleshooting
Node Not Syncing
Check Internet Connection:
Ensure your internet connection is stable.
Allow Firewall Connections:
Open Windows Firewall settings and allow connections on ports
16110
(for RPC) and16111
(for node-to-node communication).
Download a Bootstrap Database:
Consider downloading a bootstrap database for faster syncing.
Checking Node Status via CLI
Run Status Command:
For Windows:
Use the
--help
flag to view more command options:
Last updated