How to Create a Crypto Wallet & Generating a PEM File on the Elrond Devnet Network
💝💝💝 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.)
- Go to the Elrond DevNet Wallet: https://devnet-wallet.elrond.com/.
Click on “Create Wallet” button.
2. On the “Create Wallet” agreements, read it, and check the boxes and click “Continue”.
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).
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”.
5. Create a Password and confirm it, then click “Continue”.
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.
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”
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.
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:
- 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/
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]
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:
- How to Setup Your Development Environment to Create Smart Contracts with Rust on Elrond Blockchain Network
- How to Create a Crypto Wallet & Generating a PEM File on the Elrond Devnet Network
- The Basic “Hello World” Smart Contract using Rust Programming Language — Compile, Deploy, and Interact with Contract on the Elrond Network Blockchain