Metamask
Last updated
Last updated
MetaMask is an extension for accessing Harmony enabled distributed applications, or "Dapps" in your browser!
The extension injects the Harmony web3 API into every website's javascript context, so that dapps can read from the blockchain.
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 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 connected to and then select Custom RPC:
Fill it accordingly to the Harmony Network and shard you want 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.
https://s1.api.harmony.one
https://s2.api.harmony.one https://s3.api.harmony.one
Currency symbol (optional)
Block Explorer URL (optional)
In order to configure Metamask with Binance Smart Chain (BSC) check the documenation here.
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 succesfully created a new account!
There is a known issue on MetaMask where after the restoration of a wallet, MetaMask shows a different account with missing funds. Please make sure you use the same RPC network details as the one used in the original wallet. For example, if your original wallet was on the Harmony RPC network but your new wallet is on POKT RPC network, you may not see your original 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!
You can receive transactions to addresses starting with both one1 and 0x. However, 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
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.
If your transaction fails due to insufficient gas, set the Gas Limit to 25000
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.
Applications can provide 1-click access to the Harmony mainnet. An example of this implementation is by Sushi where users can easily go from Ethereum to Harmony: https://app.sushi.com/swap​
Click on the top right where it says "Harmony" and it will open a simple drop down menu to select the network you want to use Sushi on.