Post
Topic
Board Announcements (Altcoins)
Merits 1 from 1 user
Re: |ANN|•YIC • YICOIN • X11 • MASTERNODE • NO ICO • NO PREMINE
by
kidshell
on 24/01/2018, 17:03:40 UTC
⭐ Merited by thiec (1)
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:
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=
rpcpassword=
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

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