3 - HOW TO CREATE A YIC WALLET ON LINUX
Let's install all packages/libraries to install the wallet (packages described on GitHub):
Installing GitHub package:
Installing Libs to support wallet:
Creating specific folder for the wallet and wallet data.
The standard installation is on home folder (~/.yicoin)
================ Step 01 // Preparing the environment ================
First, let's create the folder
Giving permission for all (you can be more specific to be safety)
================ Step 02 // Getting the wallet ================
Let's download the Git Code:
Compiling the code:
Copying the bin for /wallet (main folder)
================ Step 03 // Personalizing the DATA FOLDER ================
All data about the YIC will be saved here (wallet, conf, bootstrap, etc):
================ Step 04 // Creating CONFIG file to start the Wallet as Proof-of-Stake ================
Copy and paste the code bellow:
================ Step 05 // STARTING the wallet in PoS mode ================
This step will take long time to syncing
You can monitor the sync update looking the LOG file:
PS: It will take long time running
================ Step 06 // Creating alias ================
ALIAS will help us to reduce the code when you write it on the prompt.
Now, type only:
instead of
Let's save the alias on the profile to be used any moment you are logged:
If the file exists, ignore this step! If not, add this on the begin of the file .bash_profile:
That's fine, let's add the ALIAS on the end of file:
Just save it and done.
================ Step 07 // Quick tips ================
Help:
To know the balance and POW / POS / Block
Get only balance
List of lasts of transactions
Stop the wallet
Get your Wallet Address
I hope it can help you!
Do not forget to check HOW TO ENCRYPT YOUR WALLET and also HOW TO BACKUP THE WALLET.DAT in a safety place.
=======================================================
>> Donation
If this guide is really usefully, pay me a coffee!
YIC Address: YechFPuCc4wd8BLQpwjWsNKazRJa2qfJEF
Let's install all packages/libraries to install the wallet (packages described on GitHub):
Installing GitHub package:
Code:
sudo apt-get install -y git
Installing Libs to support wallet:
Code:
sudo apt-get install build-essential automake libssl-dev libboost-all-dev libdb5.3++-dev libminiupnpc-dev screen
Creating specific folder for the wallet and wallet data.
The standard installation is on home folder (~/.yicoin)
================ Step 01 // Preparing the environment ================
First, let's create the folder
Code:
sudo mkdir /wallets
Giving permission for all (you can be more specific to be safety)
Code:
sudo chmod 777 /wallets
================ Step 02 // Getting the wallet ================
Let's download the Git Code:
Code:
cd /wallets;
git clone https://github.com/YiDeveloper/Yi.git yic
Compiling the code:
Code:
cd /wallets/yic/src/leveldb
chmod +x build_detect_platform
cd ..
sudo make -f makefile.unix
Copying the bin for /wallet (main folder)
Code:
mv -f /wallets/yic/src/YiCoind /wallets/yic/
================ Step 03 // Personalizing the DATA FOLDER ================
All data about the YIC will be saved here (wallet, conf, bootstrap, etc):
Code:
mkdir /wallets/yic/wallet
================ Step 04 // Creating CONFIG file to start the Wallet as Proof-of-Stake ================
Code:
cd /wallets/yic/wallet
vi YiCoin.conf
Copy and paste the code bellow:
Quote
rpcuser=<change-the-user>
rpcpassword=<change-the-pwd>
server=1
listen=1
staking=1
rpcallowip=127.0.0.1
rpcport=66470
port=66471
addnode=54.214.64.41:55486
rpcpassword=<change-the-pwd>
server=1
listen=1
staking=1
rpcallowip=127.0.0.1
rpcport=66470
port=66471
addnode=54.214.64.41:55486
================ Step 05 // STARTING the wallet in PoS mode ================
This step will take long time to syncing
Code:
/wallets/yic/YiCoind -datadir=/wallets/yic/wallet -daemon -server
You can monitor the sync update looking the LOG file:
PS: It will take long time running
Code:
tail -f /wallets/yic/wallet/debug.log
================ Step 06 // Creating alias ================
ALIAS will help us to reduce the code when you write it on the prompt.
Code:
alias yic="/wallets/yic/YiCoind -datadir=/wallets/yic/wallet"
Now, type only:
Code:
yic getinfo
instead of
Code:
/wallets/yic/YiCoind -datadir=/wallets/yic/wallet getinfo
Let's save the alias on the profile to be used any moment you are logged:
Code:
cd ~
vi .bash_profile
If the file exists, ignore this step! If not, add this on the begin of the file .bash_profile:
Quote
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
That's fine, let's add the ALIAS on the end of file:
Quote
alias yic="/wallets/yic/YiCoind -datadir=/wallets/yic/wallet"
Just save it and done.
================ Step 07 // Quick tips ================
Help:
Code:
yic -?
To know the balance and POW / POS / Block
Code:
yic getinfo
Get only balance
Code:
yic getbalance
List of lasts of transactions
Code:
yic listtransactions
Stop the wallet
Code:
yic stop
Get your Wallet Address
Code:
yic getaccountaddress MN01
I hope it can help you!
Do not forget to check HOW TO ENCRYPT YOUR WALLET and also HOW TO BACKUP THE WALLET.DAT in a safety place.
=======================================================
>> Donation
If this guide is really usefully, pay me a coffee!
YIC Address: YechFPuCc4wd8BLQpwjWsNKazRJa2qfJEF
Got error in step 02. Cannot compile