Connect to Linea
MetaMask
Infura
Linea is available by default in MetaMask through an Infura RPC endpoint.
- MetaMask Extension
- MetaMask Mobile
Linea Mainnet
Find the network selector in the top-left of MetaMask, and click to see your available networks. From here, select Linea Mainnet:
![MetaMask change network to Linea extension](/img/get_started/connect/MetaMask_change_network_to_Linea_extension.gif)
If you don't see Linea Mainnet in the "Enabled networks" list, scroll to the "Additional networks" section, and click "Add".
Linea Sepolia
In the networks menu, scroll until you see the "Show test networks" toggle. If it's off, switch it on; you should see Linea Sepolia in the list. Select it to get started.
![MetaMask change network to Linea Sepolia extension](/img/get_started/connect/MetaMask_show_test_network_Linea_Sepolia_extension.png)
Linea Mainnet
Find the network selector at the top of the screen. Tap it to open the networks menu.
Select "Linea Mainnet" to switch to it. If you don't see it in the list, scroll "Additional networks" list and tap "Add" to add Linea Mainnet to your wallet.
![MetaMask change network to Linea mobile](/img/get_started/connect/MetaMask_change_network_to_Linea_mobile.gif)
Linea Sepolia
Scroll until you see the "Show test networks" toggle. If it's off, switch it on; you should see Linea Sepolia in the list. Select it to get started.
![MetaMask change network to Linea Sepolia mobile](/img/get_started/connect/MetaMask_show_test_network_Linea_Sepolia_mobile.png)
See the MetaMask support article for further information.
Custom RPC endpoint
You can configure MetaMask to connect to Linea Mainnet or Linea Sepolia with any RPC endpoint.
Refer to the MetaMask Support site for instructions on how to add RPC endpoints.