githubEdit

Create Your Account

Before We Begin

In this guide, we'll generate a wallet address on your workstation. Make sure to have Nexqloud client installed on your workstation.

What are Shell Variables?

Shell variables will be used throughout these guides to make the instructions so that the commands can be used verbatim. The beginning of each guide will give a list of variables used and how to populate them.

Closing or changing terminals will mean that you have to re-define the variable. Because of this, it is important to type the commands into a terminal where the variables have been defined.

Name
Description

NEXQLOUD_KEY_NAME

Key name of your choosing. This documentation uses a value of "alice".

NEXQLOUD_KEYRING_BACKEND

Keyring backend to use for local keys. One of os (default), file, test.

1. Define your Shell Variables

First configure the name of your key. The command below will set thee name of your key to alice, run the below command and replace alice with a name of your choice:

NEXQLOUD_KEY_NAME=alice

Next, set the Key Ring Backend that you will use to store your key locally. The default is os and will store the key in your operating system, protected by your login password. You can change this to file or test.

NEXQLOUD_KEYRING_BACKEND=os

2. Derive a New Key Locally

Derive a new private key and encrypt to disk using the command keys add

provider-services \
  --keyring-backend "$NEXQLOUD_KEYRING_BACKEND" \
  keys add "$NEXQLOUD_KEY_NAME"

You'll see a response similar to below:

In the above example, your new Nexqloud address is nexqloud1cz87pqkad72gggrv3t7y2x9z56h9gqghlnx3j3 and generated mnemonic phrase is town wolf margin .... humble nest call

IMPORTANT: It's imperative you keep the mnemonic phrase in a safe place. It is the ONLY way to recover your private key incase you change or lose your device.

3. Derive a New Key using Ledger

To derive a key and store it on the ledger, add the --ledger flag keys add command. For example:

Will produce a similar output to:

4. Recovering Your Keys Using Pass Phrase

The command to recover your key is:

This will prompt the user to input a bip39 mnemonic and looks similar to:

5. Exporting Your Private Keys

The command to export your private key is keys export. For example:

will output a response similar to:

6. Get your Account Address

You can now find your account address with this command:

You can now set the Shell Variable NEXQLOUD_ACCOUNT_ADDRESS for your account address:

Last updated