Metamask
Last updated
Last updated
MetaMask is an extension for accessing Harmony enabled distributed applications, or "Dapps" in your browser.
Click here to install the Metamask extension on your browser. It can be installed using the Google Chrome Browser. Just click on the installation button and it should be automatically installed.
By default Metamask supports the Ethereum blockchain, but since Harmony is EVM compatible with Ethereum, it can be used the same way by setting a custom RPC endpoint.
In order to connect to the Harmony Network, a custom RPC Endpoint needs to be added. On top click on the network you are connect to and and then on Custom RPC:
Fill it accordingly to the Harmony Network and the shard you want to to connect to.
Use the RPC URL of Shard 0 if you want to send/receive transactions from exchanges or do any staking transaction type.
Field
Mainnet
Testnet
Network Name
Harmony Mainnet
Harmony Testnet
New RPC URL
https://api.harmony.one
https://s1.api.harmony.one
https://s2.api.harmony.onehttps://s3.api.harmony.one
https://api.s0.b.hmny.io
https://api.s1.b.hmny.io
https://api.s2.b.hmny.io
https://api.s3.b.hmny.io
Chain ID
(use number only)
Shard 0: 1666600000
Shard 1: 1666600001
Shard 2: 1666600002
Shard 3: 1666600003
Shard 0: 1666700000
Shard 1: 1666700001
Shard 2: 1666700002
Shard 3: 1666700003
Currency symbol (optional)
ONE
ONE
Block Explorer URL (optional)
https://explorer.harmony.one/#/
https://explorer.pops.one/#/
The example below shows the configuration that needs to be done to connect to Harmony Mainnet on Shard 0:
In order to create a new account, click on the icon on top as shown by the image below and then on Create Account:
On next window, fill it with the account you want to choose and click on Create button. You should have successfully created a new account!
Click on the icon on top as shown by the image below and then on Import Account:
On next window, select the option to import from a Private Key, paste your key and click on Import button:
Since Metamask does not allow you to send transactions to addresses starting with "one1", you need to get the equivalent 0x address of this same address. For that, follow the procedures below.
Go to https://explorer.harmony.one/#/ (Mainnet) or https://explorer.pops.one/#/ (Testnet) and search for your address
On top of the blockexplorer toogle the address format from ONE to ETH
Copy the 0x address format by clicking on the small icon right to the address
To send a transaction on Metamask click on Send button and on next window copy paste the destination address starting with 0x, fill the amount you want to send, click on Next and then on Confirm.
In order to receive a transaction, just share the 0x address format. One Wallet supports sending regulars transactions to either addresses starting with 0x or one1.
On Metamask click on Add Token and on next window select Custom Token. Fill it with the contract address starting with 0x, Token Symbol of the token and the Decimals of Precision which is usually 18:
Now click on Next and then Add Tokens. Your custom HRC20 Token will show up on a new page. It will also be available on the main Metamask window on the Assets tab.
Click on the asset you want to send your tokens from on the Asset tab. Click on Send button and on next window copy paste the destination address starting with 0x, fill the amount you want to send, click on Next and then on Confirm.
In order to receive a transaction, just share the 0x address format of your wallet. One Wallet supports sending HRC20/HRC721 transactions to either addresses starting with 0x or one1.
Address Format