Interacting with Meter Mainnet Using Ledger
Hardware wallets provide a safer way to store crypto assets due to their ability to manage the private key (used for signing transactions) offline. They provide an additional layer of security against the risks of compromised private keys (phishing attacks) or malicious smart contracts frequently experienced by users relying on web wallets for safety of their assets.
Note: The assets are always stored on the blockchain and not on the hardware wallet.
Ledger offers three hardware wallet solutions at the time of writing: Ledger Nano S, Ledger Nano S Plus and Ledger Nano X.
You can interact with Meter using your Ledger hardware wallet through the Meter Ledger Live app. Meter Network is also supported through the Ethereum App on Ledger Live. The difference in using the applications is outlined below;
In this tutorial, you will learn how to get started with your Ledger hardware wallet on Meter Network using the Meter app. These steps are applicable across all 3 devices (Ledger Nano X, Ledger Nano S and Ledger Nano S Plus).
As the Meter App is supported through third party service (MetaMask), all assets available on Meter Network are currently supported.
MTRG can be added as a custom ERC20 token:
The native assets - MTR and MTRG - are not currently available on Ledger Live.
Before you get started, update Ledger Live to the latest version available. Also, make sure you've your Ledger hardware wallet device running the latest firmware. The Ledger support website offers tutorials on how to update the firmware of Ledger Nano S, Ledger Nano S Plus and Ledger Nano X devices.
At the time of writing, the following versions were used:
In addition, you'll need MetaMask as an intermediary between your Ledger device and Meter. Make sure that your MetaMask is connected to Meter. As of MetaMask version 10.5.0, connecting your Ledger device with MetaMask on Chrome is easy again. You just need to have the latest version of MetaMask installed.
The Meter app is dependent on the Ethereum app, so first you will need to install the Ethereum app. Once the Ethereum app is installed you will be able to install the Meter app without a problem. Please note that the Meter app is only for the Meter network.
To get started, open up Ledger Live and:
- 1.Select 'My Ledger' from the menu
- 2.Connect and unlock your device (this must be done before installation)
- 3.In the App catalog search for Ethereum (ETH) and click Install. Your Ledger device will show Processing and once the installation is complete, the app will appear on your Ledger device
- 4.Search for Meter (MTR) in the App catalog and click Install. Again, your Ledger device will show Processing and once complete, the Meter app will appear on your Ledger device
In the Ledger Live app, you should see the Ethereum and Meter app listed under the Apps installed tab on the 'My Ledger' page. After the apps have been successfully installed, you can close out of Ledger Live.
Now that you've installed the Ledger Live apps, you can connect your Ledger to the computer, unlock it, and open the Meter app.
Then import your Ledger account to MetaMask as shown below;
If you're using Chrome or a Chrome-based browser like Brave, you'll be prompted to select your Ledger device to via a pop-up to connect via WebHID. If a pop-up doesn't appear, you may need to change your MetaMask settings to enable a WebHID connection. You can check and update your MetaMask settings by following these steps:
- 1.Expand the top-right menu and go to Settings
- 2.Navigate to Advanced
- 3.Scroll down to Preferred Ledger Connection Type and select WebHID from the dropdown
Note: The Preferred Ledger Connection Type setting is only available on Chrome and Chrome-based browsers. This setting doesn't exist on other browsers such as Firefox.
If MetaMask was able to connect successfully to your Ledger device, you should see a list of five Meter/Ethereum-styled accounts. If not, double-check that Ledger Live is closed, you've connected your Ledger device to the computer, unlocked it, and have the Meter app open.
If you've imported your Ledger account successfully, you should see your account and balance displayed in the main MetaMask screen
You can switch accounts in MetaMask at any time to view the balance of your other imported Ledger accounts.
To get started interacting with your Ledger device, you will need to send some funds to it. Copy your address from MetaMask by clicking on your account name and address in MetaMask.
Next, you will need to obtain some MTR tokens and using the address you just copied, send the tokens to your account. After the transaction has successfully gone through, you will see your balance update.
Note: You can receive both native tokens - MTR and MTRG from different sources (CEX, Address)
Next up is sending and signing transactions on Meter using your Ledger device.
Here are the steps to review on your ledger device:
- 1.Click the button to proceed to the next screen. Your Ledger device is only warning you to review the transaction
- 2.Check the number of tokens being sent then proceed to the next screen
- 3.Check the recipient's address and proceed to the next screen
- 4.Check the max fees applicable to this transaction. This is the gas price multiplied by the gas limit you've set on MetaMask. When ready, proceed to the next screen
- 5.If you agree with all the transaction details, approve it. This will sign the transaction and will trigger MetaMask to send it. If you don't agree with all the transaction details, reject it. This will cancel the transaction, and MetaMask will mark it as failed
Right after you've approved the transaction, MetaMask sends it to the network. Once the transaction is confirmed, it will be displayed as Send on the Activity tab in MetaMask.
And that is it! You've signed a transaction and sent some MTR tokens using your Ledger hardware wallet!
By default, Ledger devices don't admit a data field in the transaction object. Consequently, users can't deploy or interact with smart contracts.
However, if you want to use your Ledger hardware wallet for transactions related to smart contracts, you need to change a configuration parameter inside the app on your device. To do so, take the following steps:
- 1.On your Ledger, open the Meter or Ethereum app
- 2.Navigate to Settings
- 3.Find the Blind signing page. It should state NOT Enabled at the bottom
- 4.Select/validate the option to change its value to Enabled
Note: This option is necessary to use your Ledger device to interact with ERC-20 token contracts that might live inside the Meter ecosystem.