Creating a Wallet (CLI)
Installing xplad enables you to easily create a Wallet even through the command-line interface (CLI). If you're not familiar with the CLI or encounter difficulties with installing xplad, feel free to proceed to the next step directly. (Come again later!)
What is xplad?
Installing xplad
Let's start by installing xplad. You can also refer to the Docs for installation.
- Windows
- macOS
2. Install Golang in WSL Environment.
sudo apt-get update
wget https://golang.org/dl/go1.18.1.linux-amd64.tar.gz tar -xvf go1.18.1.linux-amd64.tar.gz
rm -f go1.18.1.linux-amd64.tar.gz
mkdir app
mkdir app/bin
mkdir app/pkg
3. Set up the GOPATH and GOBIN environment variables. Open .profile with vim Editor.
vim .profile
Fix .profile according to the contents below.
export GOROOT=$HOME/go
export GOPATH=$HOME/app
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
Change the settings with .profile.
source .profile
4. Clone the source code of xplad in Github.
git clone https://github.com/xpladev/xpla
cd xpla
5. Build xplad for execution.
make install
6. Confirm that xplad is installed correctly.
xplad version --long
name: xpla
server_name: xplad
version: v0.0.5
commit: d947adaefadda0f29c92f18e8b33f769816f3c33
build_tags: netgo,ledger
go: go version go1.18.4 darwin/amd64
xplad: command not found
error message, try executing the command below and then proceed with step 4 once again.export PATH=$PATH:$(go env GOPATH)/bin
2. Click on
Source code (tar.gz)
to download the xpla_<latest-version-here>.tar.gz
file.3. Double-click the downloaded file to extract the contents.
4. Set the extracted folder as your working directory.
cd Downloads/xpla_<downloaded-version>/
libwasmvm.dylib
to /lib
directory.sudo cp libwasmvm.dylib /usr/local/lib
/lib
and /bin
folders inside the /usr/local
directory.sudo cd /usr/local
sudo mkdir lib
sudo mkdir bin
xplad
to your PATH.sudo cp xplad /usr/local/bin
xplad version --long
Creating a Wallet with xplad
Is xplad all set up and ready to go? Now, let's use xplad to create a Wallet.
You can create a wallet using the following command.
xplad keys add <your-key-name>
Replace <your-key-name>
with the name you want to give your wallet. For example, you could run xplad keys add test1
.
You'll receive results similar to the ones shown below.
$ xplad keys add test1
Enter keyring passphrase:
- name: test1
type: local
address: xpla1z92x0yghmyz4k755d8f3vcm478se5rl5zl7sqr
pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AgTUIN8fbHKx9O26MkdWIsV+97/trkIbLD/cqU7m4s6N"}'
mnemonic: ""
**Important** write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.
state wall exist drum depart between debate inject scorpion truly equip smile height window rural install crystal crumble lock begin inform blur since army
Your mnemonic words and wallet address will be displayed in the CLI. Your wallet has been successfully created! Remember to SECURELY STORE your mnemonic words.
For more details about the wallet creation command (xplad keys add
), refer to the Docs. You can also explore more commands that xplad has to offer by referring to the Docs.