Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Connect to Linea" page #874

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions docs/get-started/connect.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
title: Connect to Linea
description: Learn how to connect wallets to Linea.
image: /img/socialCards/connect-to-linea.jpg
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

## MetaMask

### Infura

Linea is available by default in MetaMask through an Infura RPC endpoint.

<Tabs className="my-tabs">
<TabItem value="extension" label="MetaMask Extension">

**Linea Mainnet**

Find the network selector in the top-left of MetaMask, and click to see your available
networks. From here, select Linea Mainnet:

IMG
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?


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.

IMG

</TabItem>
<TabItem value="mobile" label="MetaMask Mobile">
**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.

IMG

**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.

IMG

</TabItem>
</Tabs>

:::note

See the [MetaMask support article](https://support.metamask.io/networks-and-sidechains/managing-networks/how-to-connect-to-linea-on-metamask/)
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](https://support.metamask.io/networks-and-sidechains/managing-networks/how-to-add-a-custom-network-rpc/#adding-or-editing-rpc-urls)
for instructions on how to add RPC endpoints.

## Other wallets

- [Coinbase Wallet](https://help.coinbase.com/en/wallet/layer2-networks/layer2-networks-and-sidechains)
- [Ledger](https://support.ledger.com/article/17822826153757-zd)
- [Trust Wallet](https://community.trustwallet.com/t/how-to-add-a-custom-network-on-the-trust-wallet-mobile-app/626781)
- [Rainbow](https://rainbow.me/support/extension/custom-networks-on-the-browser-extension)
3 changes: 3 additions & 0 deletions mlc_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
},
{
"pattern": "https://rpc.sepolia.linea.build"
},
{
"pattern": "https://help.coinbase.com/en/wallet/layer2-networks/layer2-networks-and-sidechains"
}
]
}
Expand Down
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const sidebars = {
label: "Overview",
id: "get-started/index",
},
"get-started/connect",
{
type: "category",
label: "Build on Linea",
Expand Down
Loading