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:
sudo apt-get install -y git
Installing Libs to support wallet:
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
Giving permission for all (you can be more specific to be safety)
================ Step 02 // Getting the wallet ================Let's download the Git Code:
cd /wallets;
git clone https://github.com/YiDeveloper/Yi.git yic
Compiling the code:
cd /wallets/yic/src/leveldb
chmod +x build_detect_platform
cd ..
sudo make -f makefile.unix
Copying the bin for /wallet (main folder)
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):
mkdir /wallets/yic/wallet
================ Step 04 // Creating CONFIG file to start the Wallet as Proof-of-Stake ================cd /wallets/yic/wallet
vi YiCoin.conf
Copy and paste the code bellow:
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
================ Step 05 // STARTING the wallet in PoS mode ================This step will take long time to syncing
/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
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.
alias yic="/wallets/yic/YiCoind -datadir=/wallets/yic/wallet"
Now, type only:
instead of
/wallets/yic/YiCoind -datadir=/wallets/yic/wallet getinfo
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:
# .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
That's fine, let's add the ALIAS on the end of file:
alias yic="/wallets/yic/YiCoind -datadir=/wallets/yic/wallet"
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
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.
=======================================================>> DonationIf this guide is really usefully, pay me a coffee!YIC Address: YechFPuCc4wd8BLQpwjWsNKazRJa2qfJEF