diff --git a/docs/get-started/build/block-explorers.mdx b/docs/get-started/build/block-explorers.mdx new file mode 100644 index 000000000..9d44af317 --- /dev/null +++ b/docs/get-started/build/block-explorers.mdx @@ -0,0 +1,107 @@ +--- +title: Block explorers +description: Block explorers available for Linea Mainnet and Linea Sepolia. +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +If you're new to public blockchain networks, you might not be familiar with _block explorers_. It's helpful to remember that the network is keeping track of a _ledger_ of accounts, with tokens attributed to them, sent between them, created by them, etc. + +As users take actions on the network, there are changes to those accounts and tokens. A block explorer is an interface through which you can look at that information in all its raw, gritty detail. + +> If you want to learn more about explorers and how to use them, check out the [MetaMask help center](https://support.metamask.io/managing-my-wallet/how-to-check-my-wallet-activity-on-the-blockchain-explorer/) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Explorer nameURLAPI URL
Lineascanhttps://lineascan.build`https://api.lineascan.build/api`
Lineaplorerhttps://lineaplorer.build/`https://lineaplorer.build/api`
L2Scanhttps://linea.l2scan.co`https://linea.l2scan.co/api/contract`
Blockscouthttps://explorer.linea.build`https://explorer.linea.build/api`
OKLinkhttps://www.oklink.com/linea`https://www.oklink.com/docs/en/#welcome-to-oklink-api`
Chainlenshttps://linea.chainlens.com/`https://linea.chainlens.com/api`
Socialscanhttps://linea.socialscan.io/`https://api.socialscan.io/linea`
Linea for Humanshttps://linea.forhumans.app/n/a
0xPPLhttps://0xppl.com/Linea/overviewn/a
Arkhamhttps://platform.arkhamintelligence.com/n/a
NFTScanhttps://linea.nftscan.com/n/a
+
+ + + + + + + + + + + + + + + + + + + + + +
Explorer nameURLAPI URL
Lineascanhttps://sepolia.lineascan.build`https://api-sepolia.lineascan.build/api`
Blockscouthttps://explorer.sepolia.linea.build/`https://explorer.sepolia.linea.build/api`
+
+
diff --git a/docs/get-started/build/contracts.mdx b/docs/get-started/build/contracts.mdx new file mode 100644 index 000000000..29b6e5428 --- /dev/null +++ b/docs/get-started/build/contracts.mdx @@ -0,0 +1,126 @@ +--- +title: Contracts +description: Important contracts on Linea Mainnet and Linea Sepolia. +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +## Deployed contracts + + + + + + + + + + + + + + + + +
ContractAddress
L1 Message Service + + 0xd19d4B5d358258f05D7B411E21A1460D11B0876F + +
L2 Message Service + + 0x508Ca82Df566dCD1B0DE8296e70a96332cD644ec + +
+
+ + + + + + + + + + + + + + +
ContractAddress
L1 Message Service + + 0xB218f8A4Bc926cF1cA7b3423c154a0D627Bdb7E5 + +
L2 Message Service + + 0x971e727e956690b9957be6d51Ec16E73AcAC83A7 + +
+
+
+ +## Token contract addresses and bridges + + + + +To see **the most up to date list of tokens on Linea**, see +[the token explorer here](https://consensys.github.io/linea-token-list/), which is derived from the +official lists in [this repo](https://github.com/Consensys/linea-token-list/blob/main/json/linea-mainnet-token-shortlist.json). + +:::warning[Note] + +We recommend you rely on the shortlist in the above links, rather than the full list. The shortlist is +actively curated by our team, whereas the full list isn't, and automatically populates with all +tokens bridged to Linea. + +::: + +To **get your own token included**, please follow the instructions on this [repository](https://github.com/Consensys/linea-token-list). + +To see **which third-party bridges are available**, consult our [Ecosystem Portal's list](https://linea.build/apps?types=bridge). + +If you're **looking to bridge tokens to or from Linea**, head to the [Linea bridge page](https://bridge.linea.build/) +to access the various options. + + + +Sepolia token contract addresses will be added to the +[official token lists repository](https://github.com/Consensys/linea-token-list/tree/main/json) as soon as possible. + + + +## Important contracts + +For both mainnet and testnet: + + + + + + + + + + + + + + + + + + + + +
Contracts
+ IBridge.sol +
+ IL1Bridge.sol +
+ IMessageService.sol +
+ MessageServiceBase.sol +
+ ITokenBridge.sol +
diff --git a/docs/get-started/build/info-contracts.mdx b/docs/get-started/build/info-contracts.mdx deleted file mode 100644 index 9801a1f60..000000000 --- a/docs/get-started/build/info-contracts.mdx +++ /dev/null @@ -1,304 +0,0 @@ ---- -title: 'Network info, deployed contracts, and block explorers' -sidebar_position: 5 -image: /img/socialCards/network-info-deployed-contracts-and-block-explorers.jpg ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -## Network information - -**Status**: [https://linea.statuspage.io/](https://linea.statuspage.io/) - - - - - - - - - - - - - - - - - - - - - - - - -
Network NameLinea
RPC URLhttps://rpc.linea.build or via Infura (recommended)
Chain ID59144
Currency SymbolETH
Block Explorer URL Lineascan
-
- - - - - - - - - - - - - - - - - - - - - - -
Network NameLinea
RPC URLhttps://rpc.sepolia.linea.build or via Infura (recommended)
Chain ID59141
Currency SymbolETH
Block Explorer URL Lineascan
-
-
- -## Connect with node providers - -If your dapp is using public endpoints, it may encounter rate limiting. You can find Linea node providers -[here](../tooling/node-providers/index.mdx). - -We recommend connecting to Linea via [private RPCs](../tooling/node-providers/index.mdx#private-rpc-endpoints). - -## Deployed contracts - - - - - - - - - - - - - - - - -
ContractAddress
L1 Message Service - - 0xd19d4B5d358258f05D7B411E21A1460D11B0876F - -
L2 Message Service - - 0x508Ca82Df566dCD1B0DE8296e70a96332cD644ec - -
-
- - - - - - - - - - - - - - -
ContractAddress
L1 Message Service - - 0xB218f8A4Bc926cF1cA7b3423c154a0D627Bdb7E5 - -
L2 Message Service - - 0x971e727e956690b9957be6d51Ec16E73AcAC83A7 - -
-
-
- -## Token contract addresses and bridges - - - - -To see **the most up to date list of tokens on Linea**, see -[the token explorer here](https://consensys.github.io/linea-token-list/), which is derived from the -official lists in [this repo](https://github.com/Consensys/linea-token-list/blob/main/json/linea-mainnet-token-shortlist.json). - -:::warning[Note] - -We recommend you rely on the shortlist in the above links, rather than the full list. The shortlist is -actively curated by our team, whereas the full list isn't, and automatically populates with all -tokens bridged to Linea. - -::: - -To **get your own token included**, please follow the instructions on this [repository](https://github.com/Consensys/linea-token-list). - -To see **which third-party bridges are available**, consult our [Ecosystem Portal's list](https://linea.build/apps?types=bridge). - -If you're **looking to bridge tokens to or from Linea**, head to the [Linea bridge page](https://bridge.linea.build/) -to access the various options. - - - -Sepolia token contract addresses will be added to the -[official token lists repository](https://github.com/Consensys/linea-token-list/tree/main/json) as soon as possible. - - - -## Important contracts - -For both mainnet and testnet: - - - - - - - - - - - - - - - - - - - - -
Contracts
- IBridge.sol -
- IL1Bridge.sol -
- IMessageService.sol -
- MessageServiceBase.sol -
- ITokenBridge.sol -
- -## Block explorers - -If you're new to public blockchain networks, you might not be familiar with _block explorers_. It's helpful to remember that the network is keeping track of a _ledger_ of accounts, with tokens attributed to them, sent between them, created by them, etc. - -As users take actions on the network, there are changes to those accounts and tokens. A block explorer is an interface through which you can look at that information in all its raw, gritty detail. - -> If you want to learn more about explorers and how to use them, check out the [MetaMask help center](https://support.metamask.io/managing-my-wallet/how-to-check-my-wallet-activity-on-the-blockchain-explorer/) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Explorer nameURLAPI URL
Lineascanhttps://lineascan.build`https://api.lineascan.build/api`
Lineaplorerhttps://lineaplorer.build/`https://lineaplorer.build/api`
L2Scanhttps://linea.l2scan.co`https://linea.l2scan.co/api/contract`
Blockscouthttps://explorer.linea.build`https://explorer.linea.build/api`
OKLinkhttps://www.oklink.com/linea`https://www.oklink.com/docs/en/#welcome-to-oklink-api`
Chainlenshttps://linea.chainlens.com/`https://linea.chainlens.com/api`
Socialscanhttps://linea.socialscan.io/`https://api.socialscan.io/linea`
Linea for Humanshttps://linea.forhumans.app/n/a
0xPPLhttps://0xppl.com/Linea/overviewn/a
Arkhamhttps://platform.arkhamintelligence.com/n/a
NFTScanhttps://linea.nftscan.com/n/a
-
- - - - - - - - - - - - - - - - - - - - - -
Explorer nameURLAPI URL
Lineascanhttps://sepolia.lineascan.build`https://api-sepolia.lineascan.build/api`
Blockscouthttps://explorer.sepolia.linea.build/`https://explorer.sepolia.linea.build/api`
-
-
- -## Faucets - -You can use one of the following Linea Sepolia faucets to drip testnet ETH directly to your -Linea Sepolia address: - -- [Covalent](https://www.covalenthq.com/faucet/) -- [Infura](https://www.infura.io/faucet/linea) -- [GetBlock](https://getblock.io/faucet/linea-sepolia/) -- [HackQuest](https://www.hackquest.io/en/faucets/59141) (and check out their [Linea Learning Track](https://www.hackquest.io/en/learning-track/9be129e7-575b-49bd-a64e-1bbe32427ace)) - -Alternatively, [use the Linea native bridge to bridge tokens between Sepolia and Linea Sepolia](../how-to/bridge/how-to-bridge-eth.mdx). diff --git a/docs/get-started/build/network-info.mdx b/docs/get-started/build/network-info.mdx new file mode 100644 index 000000000..149b65491 --- /dev/null +++ b/docs/get-started/build/network-info.mdx @@ -0,0 +1,80 @@ +--- +title: Network information +description: Key network details for Linea Mainnet and Linea Sepolia. +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +**Status**: [https://linea.statuspage.io/](https://linea.statuspage.io/) + + + + + + + + + + + + + + + + + + + + + + + + +
Network NameLinea
RPC URLhttps://rpc.linea.build or via Infura (recommended)
Chain ID59144
Currency SymbolETH
Block Explorer URL Lineascan
+
+ + + + + + + + + + + + + + + + + + + + + + +
Network NameLinea
RPC URLhttps://rpc.sepolia.linea.build or via Infura (recommended)
Chain ID59141
Currency SymbolETH
Block Explorer URL Lineascan
+
+
+ +## Connect with node providers + +If your dapp is using public endpoints, it may encounter rate limiting. You can find Linea node providers +[here](../tooling/node-providers/index.mdx). + +We recommend connecting to Linea via [private RPCs](../tooling/node-providers/index.mdx#private-rpc-endpoints). + +## Faucets + +You can use one of the following Linea Sepolia faucets to drip testnet ETH directly to your +Linea Sepolia address: + +- [Covalent](https://www.covalenthq.com/faucet/) +- [Infura](https://www.infura.io/faucet/linea) +- [GetBlock](https://getblock.io/faucet/linea-sepolia/) +- [HackQuest](https://www.hackquest.io/en/faucets/59141) (and check out their [Linea Learning Track](https://www.hackquest.io/en/learning-track/9be129e7-575b-49bd-a64e-1bbe32427ace)) + +Alternatively, [use the Linea native bridge to bridge tokens between Sepolia and Linea Sepolia](../how-to/bridge/how-to-bridge-eth.mdx). diff --git a/docs/get-started/how-to/deploy-smart-contract/foundry.mdx b/docs/get-started/how-to/deploy-smart-contract/foundry.mdx index 3502e9279..ae8adbf7c 100644 --- a/docs/get-started/how-to/deploy-smart-contract/foundry.mdx +++ b/docs/get-started/how-to/deploy-smart-contract/foundry.mdx @@ -70,7 +70,7 @@ In the command: - Replace `YOUR_LINEA_ENDPOINT` with the URL of a [supported Infura Linea network](https://docs.infura.io/api/networks/linea/choose-a-network) - or [public endpoint URL](../../build/info-contracts.mdx#network-information). + or [public endpoint URL](../../build/network-info.mdx). - Replace `YOUR_PRIVATE_KEY` with your wallet's private key. Your output should look similar to: diff --git a/docs/get-started/how-to/deploy-smart-contract/remix.mdx b/docs/get-started/how-to/deploy-smart-contract/remix.mdx index e9aa52f42..ad2af6dc0 100644 --- a/docs/get-started/how-to/deploy-smart-contract/remix.mdx +++ b/docs/get-started/how-to/deploy-smart-contract/remix.mdx @@ -45,7 +45,7 @@ on and your account information. To do this, navigate to the **Deploy & run tran The public endpoints are rate limited and not meant for production systems. To use Infura, you'll need to [get an API key](https://docs.infura.io/api/getting-started). Then, [manually add a network to your MetaMask wallet](https://support.metamask.io/hc/en-us/articles/360043227612-How-to-add-a-custom-network-RPC#h_01G63GGJ83DGDRCS2ZWXM37CV5) using the -[network information](../../build/info-contracts.mdx#network-information). +[network information](../../build/network-info.mdx). ::: diff --git a/docs/get-started/how-to/verify-smart-contract/foundry.mdx b/docs/get-started/how-to/verify-smart-contract/foundry.mdx index a14eeb83a..b2fe0c7c7 100644 --- a/docs/get-started/how-to/verify-smart-contract/foundry.mdx +++ b/docs/get-started/how-to/verify-smart-contract/foundry.mdx @@ -17,7 +17,7 @@ You'll need to get a Lineascan (Linea instance of Etherscan) API key by creating :::note These instructions verify using the Linea instance of Etherscan, which currently doesn't support -Yul. If you would like to verify using Blockscout, please use the [Blockscout API URL for the required network](../../build/info-contracts.mdx#block-explorers). +Yul. If you would like to verify using Blockscout, please use the [Blockscout API URL for the required network](../../build/block-explorers.mdx). ::: diff --git a/docs/get-started/how-to/verify-smart-contract/hardhat.mdx b/docs/get-started/how-to/verify-smart-contract/hardhat.mdx index 55f3d8684..324432844 100644 --- a/docs/get-started/how-to/verify-smart-contract/hardhat.mdx +++ b/docs/get-started/how-to/verify-smart-contract/hardhat.mdx @@ -39,7 +39,7 @@ const { PRIVATE_KEY, LINEASCAN_API_KEY } = process.env; These instructions verify using the Linea instance of Etherscan, which currently doesn't support Yul. If you -would like to verify using Blockscout, please use the [Blockscout API URL for the required network](../../build/info-contracts.mdx#block-explorers). +would like to verify using Blockscout, please use the [Blockscout API URL for the required network](../../build/block-explorers.mdx). ::: diff --git a/redirects.json b/redirects.json index 74aba4052..942bef194 100644 --- a/redirects.json +++ b/redirects.json @@ -41,7 +41,7 @@ ] }, { - "to": "/get-started/build/info-contracts", + "to": "/get-started/build/network-info", "from": [ "/build-on-linea/use-linea-testnet/info-contracts", "/developers/quickstart/info-contracts", diff --git a/sidebars.js b/sidebars.js index 4407fa99c..964dd6e18 100644 --- a/sidebars.js +++ b/sidebars.js @@ -13,7 +13,9 @@ const sidebars = { collapsible: false, items: [ "get-started/build/ethereum-differences", - "get-started/build/info-contracts", + "get-started/build/network-info", + "get-started/build/contracts", + "get-started/build/block-explorers", "get-started/build/repos" ], },