Connect MetaMask to Klaytn
Note: MetaMask is mostly used as a wallet for Ethereum, but it is also compatible with Klaytn due to the identical address structures. Klaytn also has a browser extension wallet called Kaikas, so it basically provides the same features as MetaMask, except for Remix.
Step 1. Install MetaMask β
-
We will be using Chrome browser in this example. (Install Chrome)
-
Add MetaMask Extension to Chrome.
Note: You may need additional installations if you are using another browser.
-
You can start MetaMask by clicking on the icon in the upper right-hand corner of your chrome browser.
Step 2. Generate a MetaMask Wallet β
-
Click on [Create a Wallet].
-
Set a password.
-
You will be given a 12 word seed phrase; back it up somewhere secure.
Note: You can only restore your wallet with the seed phrase. Sharing your seed phrase with others may result in losing all of your funds. Therefore, it is recommended that you either write it down manually or store it in an offline device.
Step 3. Connect to Klaytn Cypress Network (Mainnet) β
Here's a simple way. Connect your wallet to the Klaytn Cypress Network (Mainnet).
- Click on the upper Networks tab, which is on Ethereum Mainnet as default, and select [Add network].
- Enter the Endpoint Node (EN) data of the Klaytn chain.
Cypress Network Configurationβ
Network Config Item | Value |
---|---|
Network Name | Klaytn Cypress |
New RPC URL | https://public-en-cypress.klaytn.net |
Block Explorer URL | https://klaytnscope.com |
Chain ID | 8217 |
Currency Symbol | KLAY |
- Click [Save] to add Klaytn Cypress Network.
Step 4. Send KLAY β
Note: The following steps require KLAY.
- Click [Send] on the main page and enter the recipient address and the amount of KLAY.
NOTE: Sending KLAY requires a transaction, for which you need KLAY.
- Since Klaytn v1.9.0, a dynamic gas fee mechanism has replaced the existing fixed price policy.
- So you don't have to set the fixed gas fee manually.
- Check the amount to send and the transaction fee and click [Confirm] to complete the KLAY transfer, after which you will be redirected to the main page.
- Click [Activity] on the main page to confirm the transaction history.
Connect to Klaytn Baobab Network (Testnet) β
Obtain KLAY to make a transactionβ
Note: This tutorial uses Public EN of the Testnet (Baobab) to connect to the network. Make sure to use Baobab when you are running a test.
Here's a simple way. Connect your wallet to the Klaytn Baobab Network (Testnet).
Baobab Network Configurationβ
Network Config Item | Value |
---|---|
Network Name | Klaytn Baobab |
New RPC URL | https://public-en-baobab.klaytn.net |
Block Explorer URL | https://baobab.klaytnscope.com |
Chain ID | 1001 |
Currency Symbol | KLAY |
- Click [Save] to add Klaytn Baobab Network.
- To test the connection of the Klaytn Wallet, you will need to make a transaction, which requires KLAY.
- Click on the kebab menu (three dots) in the upper right corner and select [Account details].
- Click [Export Private Key] to obtain your private key.
- When using Baobab Testnet, you can obtain Test Klay in Klaytn Faucet.
- Enter your private key on Klaytn Wallet and log in by clicking [Access]. (Attach 0x in front of the private key.)
- Click [Run Faucet]. 150 Testnet KLAY will be sent to your account and the balance will be updated accordingly. You can claim Testnet KLAY from Faucet once every 24 hours per account.
- Come back to MetaMask and confirm the KLAY that you received.