How to Create a Crypto Wallet & Generating a PEM File on the Elrond Devnet Network

Henry Ton
4 min readNov 28, 2021

💝💝💝 Please Follow us on Twitter for our NFT Drop 💝💝💝

To test Smart Contracts on the Elrond DevNet Blockchain, you will need a crypto wallet to interact with it. Whether it is to test a function, issue a token, or to mint tokens, you can do it through this test wallet. (Note: no really cash or EGLD is necessary to use it).

Using the wallet, we generate the PEM (Privacy Enhanced Mail) file which is required for deployment and interaction with Elrond Smart Contracts. It’s the private key to access the smart contracts.

The first part will show the steps on creating the wallet, and the second part will show the process of generating the PEM file.

PART ONE: Steps to Create the Wallet

The Elrond Devnet Wallet is used to interact with the Smart Contract (i.e., functions, issue a token, mint tokens, etc.)

  1. Go to the Elrond DevNet Wallet: https://devnet-wallet.elrond.com/.
    Click on “Create Wallet” button.
Elrond DevNet Wallet
Figure 1. Elrond Devnet Crypto Wallet

2. On the “Create Wallet” agreements, read it, and check the boxes and click “Continue”.

Elrond Wallet Terms of Use
Figure 2. Elrond Devnet Term of Use

3. In the “Create Wallet’ Secret Phrase, write down the words in order, check the confirm option, and click “Create Wallet” (Note: this is used in the PEM file creation — mnemonic word list).

Elrond Wallet — mnemonic word list
Figure 3. Create Wallet Mnemonic Word List

4. To confirm you did write those words down, there is a simple “Surprise Quiz” from your Secret Phrase. Enter the words to the question and hit “Continue”.

Elrond Wallet Surprise Quiz
Figure 4. Elrond Surprise Quiz

5. Create a Password and confirm it, then click “Continue”.

Elrond DevNet Wallet Create Password
Figure 5. Elrond Create Password

6. The DevNet Wallet has been create. It should download the keystore file; if not, click on the “Download keystore file again” link. This file along with your password will access the wallet. Click on the “Access Wallet” button to login.

Elrond DevNet Wallet Created
Figure 6. Elrond DevNet Wallet Created

7. Drag the keystore file that was download into the section label “Drag and drop your keystore file here” and enter the password that was set in the creation process. Click on the “Access Wallet

Elrond Network — Access your Wallet
Figure 7. Elrond Network — Access your Wallet

8. This is the dashboard for the Wallet. To get xEGLD tokens for testing, tap on the “Faucet” link on the left hand side. You get 10 xEGLD per 24 hour for testing purposes.

Elrond DevNet Wallet — Dashboard
Figure 8. Elrond DevNet Wallet — Dashboard

PART TWO: Steps to Create the PEM File

The PEM (Privacy Enhanced Mail) file is required for deployment and interaction with Elrond Smart Contracts. It’s the private key to access the smart contracts.

To generate this PEM file, you can do it using Erdpy in the Command Line Interface (CLI) Terminal. We wrote a document on how to install erdpy

Here are the steps:

  1. In the CLI Terminal, verify if Erdpy is installed by entering in:
    erdpy — version”. It should return the vesion of the Erdpy if installed. If not installed, go to https://docs.elrond.com/sdk-and-tools/erdpy/installing-erdpy/
CLI — Erdpy Version
Figure 9. CLI — Erdpy Version

2. If installed, then generate the PEM file from the mnemonic words ( <output-file> is the name the file will be saved as — in the example below, it is “dev-net-wallet.pem” — give the .pem file extension. (see figure 10)
:> erdpy — verbose wallet derive <output-file> — mnemonic

3. Next, you will be prompted to enter the mnemonic words (recalling the secret phase during the wallet creation process — those are the mnemonic word list).
:> Enter mnemonic:

4. You will get confirmation of success : (see figure 10)
INFO:cli.wallet:Created PEM file [output-file]

CLI — Erdpy wallet derive PEM File
Figure 10. CLI — Erdpy Wallet Derive PEM File

The Elrond Network Smart Contract Learning Series

This is a whole series that we are creating to show how to setup your development environment to creating, deploying, and interact with the smart contracts. Please comment if you have any questions.

Here are the other articles in this series:

  1. How to Setup Your Development Environment to Create Smart Contracts with Rust on Elrond Blockchain Network
  2. How to Create a Crypto Wallet & Generating a PEM File on the Elrond Devnet Network
  3. The Basic “Hello World” Smart Contract using Rust Programming Language — Compile, Deploy, and Interact with Contract on the Elrond Network Blockchain

--

--