Skip to main content

Setting up MetaMask

MetaMask is a convenient and fairly easy-to-use application for storing Ethereum addresses and private keys.

Goal​

To install MetaMask on your device and to connect the wallet to the Solana Testnet environment.

Device Requirements​

A browser that supports MetaMask must be installed on your device. You can use Chrome, Opera, or Firefox.

Although this tutorial uses the Ubuntu platform, the instructions provided can be applied to other platforms.

Installing MetaMask​

Step 1​

Go to the MetaMask download page. From there, select any platform you use and follow the instructions to load and install MetaMask on your device's browser. (Fig. 1 shows an example of installing MetaMask on the Chrome browser.)

Fig. 1 β€” Loading MetaMask

Step 2​

MetaMask is essentially a plugin in the form of an extension to a browser. Therefore, MetaMask can be added to your browser as an extension. In the window, as shown in Fig. 2, click Add extension.

Fig. 2

When the MetaMask extension is installed, a fox's face (the MetaMask logo) will appear in the upper left corner of the web browser window. This means that you have successfully installed MetaMask on your device and can start using it.

Step 3​

Create a wallet if you don't already have one. MetaMask offers a choice of two options for creating an account:

  • Import an existing wallet using a 12-word passphrase.
  • Create a new wallet.

Go ahead and Create a Wallet. On the support page Help Us Improve MetaMask click I agree.
The password generation form should open on the display. Enter a secret code that must contain at least 8 symbols.
A secret phrase will be generated automatically. Record the secret phrase for backup (preferably not on a device connected to the Internet). Without this phrase, your funds cannot be refunded if your device is damaged or lost. Confirm that you have written it down on the next page.

After that, you should see your wallet linked to your account.

Setting up an RPC Network​

You can use your wallet to interact with the Solana cluster via a proxy server. To do this, you need to configure your wallet to the desired proxy server.
Depending on the tasks to be solved, as well as on the location of the proxy and Solana, there are three options for setting up the MetaMask wallet:

  • Option 1: Both the proxy and Solana are hosted on remote servers.
  • Option 2: The proxy is hosted locally and Solana is on a remote server.
  • Option 3 (debug mode): Both the proxy and Solana are hosted locally.

Step 4​

In the upper-right corner, click the red apple view element. Select "Settings" from the dropdown menu to connect to the proxy server (Fig. 3).

Fig. 3 β€” Select "Settings" from the dropdown menu

The dropdown menu elements:

  • My Accounts: A list of accounts created by your wallet.
  • Account 1: The account that was created during the MetaMask installation. This account provides management of your wallet.
  • Create Account: This allows you to create an account to interact with the new proxy server. You can configure this wallet to interact with multiple proxy servers.
  • Import Account: This allows you to import your private key generated and saved previously into this wallet and use it in the future.
  • Connect Hardware Wallet: This allows you to save the private key to an external device (i.e. flash memory) located outside the network, thereby increasing the security of your private key.
  • Settings: Used to change the default values. By default, the wallet is configured for Ethereum addresses, including those that you can’t use.

Step 5​

Click Settings in the dropdown menu. A window with the settings menu for selecting a network should open (Fig. 4).

Fig. 4 β€” Choosing a network

Step 6​

Add a Network (Fig. 5).

Fig. 5 β€” The Networks menu

The new window contains the settings for six default subnets. You need to use these settings to connect to the desired proxy. Click Add Network in the top-right corner.

Step 7​

Fill in the fields on the next page (Fig. 6):

Note: The Chain ID is specified for Testnet. To choose Devnet or Mainnet in this field, you need to specify the value 245022926 or 245022934, respectively.

The wallet settings depend on the values given for the options mentioned above.

Fig. 6 β€” Fill in the fields

Step 8​

Click Save to keep the settings.
Your MetaMask wallet has been successfully installed and is ready to use.