Skip to content

Commit

Permalink
Merge pull request #438 from okp4/feat/modification-tuto
Browse files Browse the repository at this point in the history
Update " Your first transaction" tutorial
  • Loading branch information
SamouraiKat authored Feb 29, 2024
2 parents f3b47cb + f254cb1 commit 0602cfd
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 16 deletions.
3 changes: 1 addition & 2 deletions docs/academy/part-2/decentralized-identity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ The importance of decentralized identity lies in its ability to give individuals
OKP4 integrates [W3C standards](https://www.w3.org/) for decentralized identity, guaranteeing compatibility and interoperability across a wide range of specifications.

**For more information on [W3C standards](https://www.w3.org/), refer to**
[Decentralized Identifiers doc](https://www.w3.org/TR/did-core/)
[Verifiable Credentials doc](https://www.w3.org/TR/vc-data-model-2.0/)
[Decentralized Identifiers doc](https://www.w3.org/TR/did-core/) and [Verifiable Credentials doc](https://www.w3.org/TR/vc-data-model-2.0/)

:::

Expand Down
44 changes: 31 additions & 13 deletions docs/tutorials/keplr-1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Optionally, you can **pin Keplr for easy access**: click the ‘Extensions' butt

## Add OKP4 network to Keplr and get $KNOW test tokens

$KNOW is the native token on the OKP4 blockchain. You need $KNOW tokens to interact with the OKP4 blockchain (i. e. send a payment or execute a smart contract query).
**KNOW** is the native token on the OKP4 blockchain. You need **KNOW** tokens to interact with the OKP4 blockchain (i. e. send a payment or execute a smart contract query).

The official OKP4 faucet provides a way to obtain test tokens for experimentation and testing purposes. Here's how you can access the faucet:

Expand All @@ -46,26 +46,40 @@ The official OKP4 faucet provides a way to obtain test tokens for experimentatio

![OKP4 Faucet, ask for $KNOW tokens](/img/content/tutorials/keplr-5.webp)

3. You will have to pass the reCaptcha challenge, and then a Keplr pop-up will appear. **Approve** adding the `okp4-nemeton-1` chain to Keplr.
3. You will have to pass the reCaptcha challenge, and then a Keplr pop-up will appear. **Approve** adding the `okp4-drunemeton-1` chain to Keplr.

![Approve OKP4 network adding to Keplr](/img/content/tutorials/keplr-6.webp)
![Approve OKP4 network adding to Keplr](/img/content/tutorials/keplrmaj-6.webp)

4. And you're done! Congrats, you received $KNOW tokens 🥳

## Check your $KNOW balance and get your OKP4 address

1. To see your $KNOW balance, you have to make the OKP4 nemeton network visible within the extension. Click on the Keplr extension, click the **** button upper on the left, then click "**Manage Chain Visibility**". Type "OKP4", click on "OKP4 nemeton", and then click on "Save".
1. To see your $KNOW balance, you have to make the `OKP4-drunemeton-1` network visible within the extension:

<center><img src="/img/content/tutorials/keplr-8.webp"></img></center>
- Click on the Keplr extension.
- Click the **** button upper on the left, then click "**Manage Chain Visibility**".
- Type "OKP4",
- Click on `OKP4 drunemeton`, and then click on "Save".

2. Let's check you received the $KNOW tokens. Click on the Keplr extension button, look for "OKP4 nemeton" in the list or type "okp4" in the "Search for asset or chain" field to see it easily. Alright, there's 1 $KNOW in the wallet:
<center><img src="/img/content/tutorials/keplrmaj-8.webp"></img></center>

<center><img src="/img/content/tutorials/keplr-9.webp"></img></center>
2. Let's check you received the **KNOW** tokens:

- Click on the Keplr extension button
- Look for `OKP4 drunemeton` in the list or type "okp4" in the "Search for asset or chain" field to see it easily.

Alright, there's **1 KNOW** in the wallet.

<center><img src="/img/content/tutorials/keplrmaj-9.webp"></img></center>

3. Your wallet is identified by an address derived from your recovery phrase. To receive $KNOW tokens, you should provide your OKP4 address to the spender.
Here's how you can have your OKP4 address: click on the Keplr extension icon and "Copy address". Look for "OKP4 nemeton" in the list or type ‘okp4' in the "Search for a chain" field to see it easily. Click on "Copy" to have the OKP4 address, which is in the following form: `okp41mkc58ag3am7wvzze4k6pddl8pyr6dql5htuxyu`
Here's how you can have your OKP4 address:

<center><img src="/img/content/tutorials/keplr-10.webp"></img></center>
- Click on the Keplr extension icon and "Copy address".
- Look for `OKP4 drunemeton` in the list or type ‘okp4' in the "Search for a chain" field to see it easily.
- Click on "Copy" to have the OKP4 address, which is in the following form: `okp41yxrseqc9weu6cm...9xdf3k5z8nwknf`

<center><img src="/img/content/tutorials/keplrmaj-10.webp"></img></center>

## Send $KNOW tokens to another wallet

Expand All @@ -77,11 +91,11 @@ Now that you have $KNOW tokens in your Keplr Wallet, you can send them to other

2. Select the asset you want to send: KNOW. Provide the recipient wallet address, the amount and, optionally, a memo. Click on "Next" and "Approve". You will have to pay a small fee to execute the transaction.

<center><img src="/img/content/tutorials/keplr-12.webp"></img></center>
<center><img src="/img/content/tutorials/keplrmaj-12.webp"></img></center>

### Check your transaction with the explorer

You can look at the [OKP4 explorer](https://explore.okp4.network/OKP4%20testnet) to check all transactions you executed. Click the "Search" button (up on the right) and provide your OKP4 address. The $KNOW payment you've sent will appear in the Transactions part.
You can look at the [OKP4 explorer](https://explore.okp4.network/OKP4%20Drunemeton%20testnet) to check all transactions you executed. Click the "Search" button (up on the right) and provide your OKP4 address. The $KNOW payment you've sent will appear in the Transactions part.

![Look for your transaction in the OKP4 explorer](/img/content/tutorials/keplr-13.webp)

Expand All @@ -93,6 +107,10 @@ To get started, you should:
- Safely store the recovery phrase, the secret way to use your account
- Add the OKP4 network and get $KNOW tokens via the official faucet

Once you're done, you can interact with the blockchain; you can send $KNOW tokens to another wallet using the "Send" button in Keplr, for example. Checkout the explorer to see the transactions status and more.
Once you're done, you can interact with the blockchain:
- You can send $KNOW tokens to another wallet using the "Send" button in Keplr, for example.
- You can also checkout the explorer to see the transactions status and more.

Congratulations! You have successfully learned how to set up an OKP4 account using Keplr Wallet, obtain test tokens, and send transactions.

Congratulations! You have successfully learned how to set up an OKP4 account using Keplr Wallet, obtain test tokens from the official faucet, and send transactions. With this knowledge, you can actively participate in the OKP4 blockchain ecosystem, explore its features, build new applications and interact with deployed smart contracts. Enjoy your journey into the world of OKP4!
With this knowledge, you can actively participate in the OKP4 blockchain ecosystem, explore its features, build new applications and interact with deployed smart contracts. Enjoy your journey into the world of OKP4!
2 changes: 1 addition & 1 deletion predicates/bech32_address_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Here's the steps of the scenario:

- **Given** the program:

```
``` prolog
okp4_addr(Addr) :- bech32_address(-('okp4', _), Addr).
```

Expand Down
Binary file added static/img/content/tutorials/keplrmaj-10.webp
Binary file not shown.
Binary file added static/img/content/tutorials/keplrmaj-12.webp
Binary file not shown.
Binary file added static/img/content/tutorials/keplrmaj-6.webp
Binary file not shown.
Binary file added static/img/content/tutorials/keplrmaj-8.webp
Binary file not shown.
Binary file added static/img/content/tutorials/keplrmaj-9.webp
Binary file not shown.

0 comments on commit 0602cfd

Please sign in to comment.