IOSTBEST NODE — партнер и блок-продюссер IOST

How to create an secured account on your computer using the command line iWallet

2.1 To do this, first you need to install Go.

Linux, macOS, and FreeBSD tarballs:

Download the archive to homedirectory and extract it into /usr/local, creating a Go tree in /usr/local/go. For example:

 cd /home
sudo su —
(enter password)
 tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz

(Typically these commands must be run as root or through sudo.)

Add /usr/local/go/binto the PATHenvironment variable. You can do this by adding this line to your /etc/profile 

First, set Go’s root value, which tells Go where to look for its files.

sudo nano ~/.profile

At the end of the file, add this line:

export GOPATH=$HOME/work
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

 You may need to restart all open terminal sessions for the changes to take effect.

2.2 Then we open the Terminal and install iWallet:

sudo su —
(enter password)

Git LFS (v2.5.2 or newer) is needed https://github.com/git-lfs/git-lfs/wiki/Installatio

Git LFS for UBUNTU:

Similar to Debian 7, Ubuntu 12 and similar Wheezy versions need to have a PPA repo installed to get git >= 1.8.2

sudo apt-get install software-properties-common to install add-apt-repository (or sudo apt-get install python-software-properties if you are on Ubuntu <= 12.04)

sudo add-apt-repository ppa:git-core/ppa

The curl script below calls apt-get update, if you aren’t using it, don’t forget to call apt-get update before installing git-lfs.

  1. curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
  2. sudo apt-get install git-lfs
  3. git lfs install

Next:

cd /usr/local/go

go get github.com/iost-official/go-iost/cmd/iwallet

Next, we import our account. To do this, we need to go to the directory with iWallet:

cd /usr/local/bin

Replace your_account_name and your_privkey with your real ones:

./iwallet account import your_account_name your_privkey -s 35.204.4.101:30002

Next, we need some IOST coins. We fund the account with 100 coins. Transfer from Binance to account_name, without MEMO.

Increase the reserve of GAS, for this we will lay 30 IOST:

./iwallet --account name_of_your_account call 'gas.iost' 'pledge' '["name_of_your_account","name_of_your_account","30"]' -s 35.204.4.101:30002

Let’s buy some iRAM:

./iwallet --account name_of_your_account call 'ram.iost' 'buy' '["name_of_your_account","name_of_your_account",1000]'-s 35.204.4.101.30002

2.3 Create new account:

./iwallet --account name_of_your_account --amount_limit "ram:1000|iost:10" account create new_account_name --initial_balance 0 --initial_gas_pledge 10 --initial_ram 0 -s 35.204.4.101:30002

View PrivKey and PubKey of new account:

./iwallet account view new_account_name -s 35.204.4.101:30002

END.