➖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 of the CLI Wallet.
Extract Files:
Extract the downloaded zip file to your desired location on your computer.
Make sure you are running the latest Rust Node:
Check this section of documentation to read about how to run a Rust Node of Pyrin.
Make sure your node is fully synced before running CLI Wallet.
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:
For Linux and MacOS
Follow the on-screen instructions to set a password for your wallet. Do not forget to write down your seed phrase.
Create wallet by importing 24 word seed phrase:
For Windows:
For Linux and MacOS
Follow the on-screen instructions to enter a seed phrase and set a password for your wallet.
Start the Wallet Daemon
Run the Wallet Daemon:
For Windows:
For Linux and MacOS
Leave the daemon running and perform all actions with the CLI Wallet in another instance of Command Prompt
Request a New Wallet Address
Generate a New Address:
For Windows:
For Linux and MacOS
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