description |
---|
MetaMask is a popular browser extension that allows users to interact with blockchain applications. This guide shows you how to configure MetaMask to work with the Filecoin |
ChainID.network is a website that lets users easily connect their wallets to EVM-compatible blockchains. ChainID is the simplest way to add the Filecoin network to your MetaMask wallet.
{% tabs %} {% tab title="Mainnet" %}
- Navigate to chainid.network.
- Search for
Filecoin Mainnet
. - Click Connect Wallet.
- Click Approve when prompted to Allow this site to add a network.
- Click Switch network when prompted by MetaMask.
- Open MetaMask from the browser extensions tab.
- You should see Filecoin listed at the top.
You can now use MetaMask to interact with the Filecoin network. {% endtab %}
{% tab title="Calibration" %}
- Navigate to chainid.network.
- Search for
Filecoin Calibration
. - Click Connect Wallet.
- Click Approve when prompted to Allow this site to add a network.
- You may be shown a warning that you are connecting to a test network. If prompted, click Accept.
- Click Switch network when prompted by MetaMask.
- Open MetaMask from the browser extensions tab. You should see Filecoin Calibration listed at the top.
You can now use MetaMask to interact with the Filecoin network. {% endtab %}
{% tab title="Local testnet" %}
- Navigate to chainid.network.
- Search for
Filecoin Local testnet
. - Click Connect Wallet.
- Click Approve when prompted to Allow this site to add a network.
- You may be shown a warning that you are connecting to a test network. If prompted, click Accept.
- Click Switch network when prompted by MetaMask.
- Open MetaMask from the browser extensions tab. You should see Filecoin Local testnet listed at the top.
You can now use MetaMask to interact with the Filecoin network. {% endtab %} {% endtabs %}
If you can't or don't want to use ChainID, you can add the Filecoin network to your MetaMask manually.
Before we get started, you’ll need the following:
- A Chromium-based browser, or Firefox.
- A browser with MetaMask installed.
The process for configuring MetaMask to use Filecoin is fairly simple but has some very specific variables that you must copy exactly.
- Open your browser and open the MetaMask plugin. If you haven’t opened the MetaMask plugin before, you’ll be prompted to create a new wallet. Follow the prompts to create a wallet.
- Click the user circle and select Settings.
- Select Networks.
- Click Add a network.
- Scroll down and click Add a network manually.
- Enter the following information into the fields:
{% tabs %} {% tab title="Mainnet" %}
Field | Value |
---|---|
Network name | Filecoin |
New RPC URL | Either: - https://api.node.glif.io/rpc/v1 - https://filecoin.chainup.net/rpc/v1 - https://rpc.ankr.com/filecoin |
Chain ID | 314 |
Currency symbol | FIL |
{% tab title="Calibration" %}
Field | Value |
---|---|
Network name | Filecoin Calibration testnet |
New RPC URL | Either: - https://api.calibration.node.glif.io/rpc/v1 - https://filecoin-calibration.chainup.net/rpc/v1 |
Chain ID | 314159 |
Currency symbol | tFIL |
{% tab title="Local testnet" %}
Field | Value |
---|---|
Network name | Filecoin Local testnet |
New RPC URL | http://localhost:1234/rpc/v1 |
Chain ID | 31415926 |
Currency symbol | tFIL |
- Pick one block explorer from the Networks section, and enter the URL into the Block explorer (optional) field.
- Review the values in the fields and click Save.
- The Filecoin network should now be shown in your MetaMask window.
- Done!
You can now use MetaMask to interact with the Filecoin network.
MetaMask is compatible with the Ledger hardware wallet. Follow these instructions to connect your Filecoin addresses within MetaMask to your Ledger wallet. This guide assumes you have Ledger Live and MetaMask installed on your computer.
Before you can connect MetaMask to your Ledger, you must install the Filecoin Ledger app on your Ledger device.
- Open Ledger Live and navigate to My Ledger.
- Connect your Ledger device and unlock it.
- Confirm that you allow My Ledger to access your Ledger device. You can do that by clicking both buttons on your Ledger device simultaneously.
- Go back to Ledger Live on your computer.
- In My Ledger, head over to App catalog and search for Filecoin.
- Click Install.
For more details on the official Filecoin Ledger app, check out the Ledger documentation.
MetaMask requires that the Filecoin app on your Ledger device is set to Expert mode.
-
Open the Filecoin app on your Ledger device.
-
Use the buttons on your device to navigate to Expert mode.
-
Press both buttons simultaneously to enable Expert mode.
Once you have installed the Filecoin app on your Ledger device and enabled expert mode, you can connect your device to MetaMask.
-
Open your browser and open the MetaMask extension.
-
In the Accounts menu, select Add hardware wallet.
-
Select Ledger
-
A list of accounts should appear. Select an
0x...
account. -
Done!
That's it! You've now successfully connected your Ledger device to MetaMask. When you submit any transactions through MetaMask using this account, the Filecoin Ledger app will prompt you for a confirmation on the Ledger device.
You may see a blind signing warning on your MetaMask device. This is expected, and is the reason why Expert Mode must be enabled before you can interact with the Filecoin Ledger app.