generated from open-education-hub/oer-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9816d5c
commit c9699d9
Showing
4 changed files
with
50 additions
and
15 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
chapters/introduction/lab/content/wallet/cmdline_wallet.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# First Blockchain transaction | ||
|
||
Let's perform our first ever blockchain transaction. | ||
We will do this on MultiversX blockchain. | ||
|
||
First, we need a wallet. Every access, read, write, execute, etc to the blockchain needs to be sign by you with a private key (a wallet). | ||
|
||
To create a wallet simply run: | ||
```shell | ||
$ mxpy wallet new --format pem --outfile new_wallet.pem | ||
``` | ||
|
||
Let's interpret the output: | ||
```shell | ||
$ mxpy wallet new --format pem --outfile new_wallet.pem | ||
Mnemonic: bid blind field captain bar produce brush salute luggage double hole wonder meadow glass destroy giraffe auction square crush catalog knee lizard century nasty | ||
Wallet address: erd1pfhel08mq6ucua005qgyvwq0el78ap3ytpcugy35yvqfdeq7afqsydkj3d | ||
``` | ||
|
||
First, there is a [mnemonic](https://en.wikipedia.org/wiki/Mnemonic): 24 random words. | ||
These words are used to create your private key (wallet) at any time, so you must store them carefully. | ||
For now, this is only a test wallet, so just store them in a text file on your computer. | ||
|
||
Second, we have a wallet address. This is our blockchain address. | ||
|
||
Third, we have a new file `new_wallet.pem` that contains our private key (wallet): | ||
```shell | ||
$ cat new_wallet.pem | ||
-----BEGIN PRIVATE KEY for erd1pfhel08mq6ucua005qgyvwq0el78ap3ytpcugy35yvqfdeq7afqsydkj3d----- | ||
NjM1N2UxOGQxYjBjMDk5ZjY1MzM2OWUxZGFiZGM3Mzg1Yjc5ZmY0ZWNlZTBiNWY5 | ||
NWFmNjE1MzZjZDMwODNhOTBhNmY5ZmJjZmIwNmI5OGU3NWVmYTAxMDQ2MzgwZmNm | ||
ZmM3ZTg2MjQ1ODcxYzQxMjM0MjMwMDk2ZTQxZWVhNDE= | ||
-----END PRIVATE KEY for erd1pfhel08mq6ucua005qgyvwq0el78ap3ytpcugy35yvqfdeq7afqsydkj3d----- | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters