MetaMask is an extension for accessing Harmony enabled distributed applications, or "Dapps" in your browser.
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:
Adding a 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.
The example below shows the configuration that needs to be done to connect to Harmony Mainnet on Shard 0:
Click now on the Save button and your configuration should be done.
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:
You should have successfully imported your account from the Private Key.
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.
- 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
Equivalent 0x 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.