MetaMask is a wallet extension application embedded in the browser, which helps you interact with decentralized applications (dApps).
MetaMask allows you to easily access the Ethereum network and add other public chains compatible with the EVM.
MetaMask, the most widely used browser plug-in wallet on the market, is well-received in the community.
To lower the threshold for community users, PlatON | Alaya is compatible with the core tools of the Ethereum ecosystem, including MetaMask, after its upgrade to the Ethereum-compatible version.
MetaMask makes operations such as transfer, signing, and contract interaction more convenient.
The address generated via MetaMask starts with 0x, that is, one in the Ethereum format. To view the address in the PlatON|Alaya format, please check in PlatON|Alaya.
PlatON DevNet: https://devnetscan.platon.network/
Alaya DevNet: https://devnetscan.alaya.network/
Mnemonics of ATON and those of MetaMask are incompatible with each other as they are generated through different paths. Private keys are compatible.
MetaMask cannot be called by WASM contracts, but EVM contracts only.
Since the ChainID (100) of the current PlatON MainNet is the same as the xDai MainNet, before configuring the PlatON MainNet on MetaMask, please delete the xDai MainNet in MetaMask, or configure the PlatON MainNet by "manually adding" (Ignore the hint of ChainID conflict). Future plans to update the ChainID to 210425, already registered in Chainlist (currently this ChainID: 210425 is not available)
This document will guide you through PlatON | Alaya network configuration using MetaMask.
There are many detailed introductions about the installation and use of MetaMask on the Internet, hence no need of further elaboration.
You may refer to:
After creating a wallet using MetaMask, you're advised to back up the private key of the wallet so that it can be imported into ATON for later use.
Steps of backup:
First, you need to install a MetaMask plugin on your Chrome browser.
Then register the wallet and save your mnemonics and private key.
Then click the drop-down menu in the upper right corner.
Then scroll to the end and click "Add Network"
Fill in the above information one by one. The configuration content is as follows:
Network Name: PlatON MainNetworkNew RPC URL: https://openapi.platon.network/rpcChain ID：100Currency Symbol：LATBlock Explorer URL: https://scan.platon.network/
Other available RPC nodes on the PlatON MainNet:
https://rpc.plateye.com (provided by itokenpool)
Then click Save and wait for it to finish.
Now, the PlatON MainNet has been successfully added to MetaMask.
You can also transfer assets as usual.
Done! It is worth mentioning that only Hex addresses are supported on the mainnet. In other words, you have a LAT Address and Hex Address in your ATON wallet, and the one that starts with 0x is your Hex address!
Similarly, you can add and configure the PlatON DevNet according to the following information:
Network Name: PlatON Dev NetworkNew RPC URL: https://devnetopenapi.platon.network/rpcChain ID：210309Currency Symbol：LATBlock Explorer URL: https://devnetscan.platon.network/
Other available RPC nodes on the PlatON Open Network:
http://188.8.131.52:6789 （ws://184.108.40.206:6790）http://220.127.116.11:6789 （ws://18.104.22.168:6790）
After the settings are saved, it will automatically jump to PlatON DevNet, and the following will appear:
Next, we can apply for test tokens on the PlatON DevNet faucet (https://faucet.platon.network/faucet/) to test the transfer operation.
First, we create the No.2 test wallet:
After it is saved, we will see:
Then we use the No. 1 test wallet to transfer 50 LAT to the No. 2 wallet:
Done! 50 LATs have been transferred through the testnet. We can also see a contract interaction below, which is the interaction with the showme application.
By the same token, let's fill in the following information to add the network to MetaMask.
Network Name: Alaya MainNetworkNew RPC URL: https://openapi.alaya.network/rpcChain ID：201018 Currency Symbol：ATPBlock Explorer URL: https://scan.alaya.network/
Other available RPC nodes on the Alaya MainNet:
https://rpc.alayascan.com (provided by itokenpool)
Transfer succeeds as well.
Fill out the form with the following information in order:
Network Name: Alaya Dev NetworkNew RPC URL: https://devnetopenapi.alaya.network/rpcChain ID：201030Currency Symbol：ATPBlock Explorer URL: https://devnetscan.alaya.network/
Other available RPC nodes on the Alaya DevNet:
http://22.214.171.124:6789 (ws://126.96.36.199:6790)http://188.8.131.52:6789 (ws://184.108.40.206:6790)
After the information is added, create a new Alaya test wallet, and then apply for test tokens on the Alaya DevNet faucet (https://faucet.alaya.network/faucet/) to test the transfer operation.
After receiving the test ATP from the faucet, we can start testing transfer:
Done. Now we can see 5 ATP has been received by the Alaya DevNet-2.
First, open ChainList and click "Connect Wallet" to authorize the connection to MetaMask.
Then, enter PlatON in the input box to search,
and we can see:
Note. Currently PlatON Mainnet ChainID:100, Chainlist already has a Blockchain with ChainID:100, so adding PlatON Mainnet from Chainlist is not supported for now. The registered ChainID:210425 is not yet valid and is not available!
Next, click "Add tTo MetaMask" to add the network.
Then click switch network to jump to the PlatON DevNet!
Now let's add the Alaya Dev Testnet to MetaMask in the same way.
Similarly, click Approve and then switch network. The Alaya Dev Testnet has been added.
Enter the PlatON or Alaya blockchain explorer, find [MORE] in the navigation menu, click [Add to Extension], and select the network to be configured:
Blockchain explorer on the PlatON MainNet: https://scan.platon.network/add-to-extension
Blockchain explorer on the PlatON DevNet: https://devnetscan.platon.network/add-to-extension
Blockchain explorer on the Alaya MainNet: https://scan.alaya.network/add-to-extension
Blockchain explorer on the Alaya DevNet: https://devnetscan.alaya.network/add-to-extension
1) After entering the Add to Extension page in the blockchain explorer, click [Connect MetaMask].
[Prerequisite: MetaMask needs to be installed in the explorer in advance]
2) Click [Next] in MetaMask, and then click [Connect] to establish communication with MetaMask.
1) After the connection is successful, [Connect MetaMask] turns into [Add to MetaMask]. Click [Add to MetaMask].
2) Click [Approve] to add the network configuration to MetaMask.
3) The plug-in wallet will prompt you to switch to this network. Click [Switch Network] to switch the corresponding network for later use.