Skip to main content

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?

xplad is a CLI for direct interaction with the XPLA Chain.

With xplad, you can accomplish a variety of tasks. You can send queries, create transactions, and even use it for running a Full-node.

For more details about xplad, check the Docs or Github.

Installing xplad

Let's start by installing xplad. You can also refer to the Docs for installation.

1. To use Linux in a Windows environment, WSL(Windows Subsystem for Linux) is required. Please install and run WSL.

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
If you see results similar to the following, xplad is installed properly.
name: xpla
server_name: xplad
version: v0.0.5
commit: d947adaefadda0f29c92f18e8b33f769816f3c33
build_tags: netgo,ledger
go: go version go1.18.4 darwin/amd64

If you encounter an error…
If you encounter an 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

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.