-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document "Connect your wallet" for asset hub smart contracts #300
Open
nhussein11
wants to merge
10
commits into
staging-ah-smart-contracts
Choose a base branch
from
277-document-how-to-connect-metamask-to-westend-assethub
base: staging-ah-smart-contracts
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f9f0904
fix: wip
nhussein11 01b7afc
fix: connect your metamask
nhussein11 86160c3
Merge branch 'master' into 277-document-how-to-connect-metamask-to-we…
nhussein11 23d8dda
Update develop/smart-contracts/evm/connect-your-wallet.md
nhussein11 83827d1
Update develop/smart-contracts/evm/connect-your-wallet.md
nhussein11 0373180
fix: desc
nhussein11 0f25935
Update develop/smart-contracts/evm/connect-your-wallet.md
nhussein11 d68dde9
Update develop/smart-contracts/evm/connect-your-wallet.md
nhussein11 874e00d
fix: wording
nhussein11 7303cd5
fix: ia
nhussein11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
title: EVM Toolkit | ||
nav: | ||
- index.md | ||
- 'Connect Your Wallet': connect-your-wallet.md |
61 changes: 61 additions & 0 deletions
61
develop/smart-contracts/evm-toolkit/connect-your-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,61 @@ | ||
--- | ||
title: Connect your Wallet | ||
description: Learn to connect MetaMask to the Asset Hub blockchain. Set up your wallet, switch networks, and request test tokens for development. | ||
--- | ||
|
||
# Connect your Wallet | ||
|
||
## Connect to Asset Hub Using MetaMask | ||
|
||
MetaMask allows users to connect to the Asset Hub to explore and interact with the chain. This article will guide you step by step on how to set up an EVM-compatible wallet, connect to the Westend Asset Hub, and request test tokens for development testing. | ||
|
||
## Prerequisites | ||
|
||
To get started with MetaMask, you need to install the [MetaMask extension](https://metamask.io/download/){target=\_blank} and add it to the browser. Once you install MetaMask, you can set up a new wallet and securely store your seed phrase. This phrase is crucial for recovery in case you lose access. | ||
|
||
## Connect to the Asset Hub Westend TestNet | ||
|
||
To connect to the Westend Asset Hub TestNet via MetaMask, you need to follow these steps: | ||
|
||
1. Open the MetaMask extension and click in the network icon to switch to the Asset Hub Westend TestNet | ||
|
||
![](/images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-1.webp) | ||
|
||
2. Click on the **Add a custom network** button | ||
|
||
![](/images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-2.webp) | ||
|
||
3. Fill in the required fields with the following parameters and click the **Save** button | ||
|
||
| **Attribute** | **Value** | | ||
|------------------------|-------------------------------------------------------------| | ||
| **Network name** | <pre>```Asset-Hub Westend TestNet```</pre> | | ||
| **Default RPC URL** | <pre>```https://westend-asset-hub-eth-rpc.polkadot.io```</pre> | | ||
| **Chain ID** | <pre>```420420421```</pre> | | ||
| **Currency symbol** | <pre>```WND```</pre> | | ||
| **Block explorer URL** | <pre>```https://assethub-westend.subscan.io``` </pre> | | ||
|
||
![](/images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-3.webp) | ||
|
||
4. Click on the **Asset-Hub Westend TestNet** to switch the network | ||
|
||
![](/images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-4.webp) | ||
|
||
|
||
## Request Test Tokens | ||
|
||
To start conducting transactions and interacting with smart contracts on the Westend TestNet, you'll need test WND tokens. Here's how to get them: | ||
|
||
1. Navigate to the [Westend Faucet](https://faucet.polkadot.io/westend?parachain=1000){target=\_blank} | ||
|
||
2. Copy your MetaMask address linked to the Westend Asset Hub and paste it into the designated field on the Faucet page | ||
|
||
![](/images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-5.webp) | ||
|
||
3. Click **Get Some WND** button to request free test WND tokens. These tokens will be sent to your MetaMask wallet shortly. | ||
|
||
![](/images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-6.webp) | ||
|
||
## Conclusion | ||
|
||
Congratulations! You have successfully connected to the Westend Asset Hub using MetaMask and acquired test tokens. This setup allows you to experiment with the network’s functionalities without using real ether or encountering financial risks. Remember to keep your MetaMask credentials secure and never share your wallet’s private key or seed phrase with anyone. |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+37.6 KB
images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-1.webp
Binary file not shown.
Binary file added
BIN
+19.7 KB
images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-2.webp
Binary file not shown.
Binary file added
BIN
+27.9 KB
images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-3.webp
Binary file not shown.
Binary file added
BIN
+19.9 KB
images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-4.webp
Binary file not shown.
Binary file added
BIN
+55.3 KB
images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-5.webp
Binary file not shown.
Binary file added
BIN
+55.3 KB
images/develop/smart-contracts/evm-toolkit/connect-your-wallet/connect-your-wallet-6.webp
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not accurate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @kianenigma. I assume there’s a typo in item 2, and you meant to say, "Westend is EVM compatible, and soon Kusama and Polkadot will be."
If so, do you think this introduction covers your points using the correct terminology?