Skip to content

Commit f4751e1

Browse files
committed
add lit chain button and more chain info
1 parent b8c257e commit f4751e1

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import AddLitChainButton from "@site/src/components/AddLitChainButton";
2+
3+
---
4+
title: "Lit Chain"
5+
---
6+
7+
8+
Lit Chain is an Arbitrum Orbit-based L3 rollup that acts as the shared state layer for Lit Protocol.
9+
10+
## Connecting to Lit Chain
11+
12+
To connect to Lit Chain, you can click <AddLitChainButton /> or manually add the network parameters below. For production use cases, you should get a free private RPC URL from Conduit by clicking "Get an API Key" on the [Lit Chain hub page](https://hub.conduit.xyz/lit-chain-1rw3jdu82h).
13+
14+
:::note
15+
The below and additional chain facts are available [here](https://hub.conduit.xyz/lit-chain-1rw3jdu82h).
16+
:::
17+
18+
| Parameter Name | Value |
19+
|--------------------|----------------------------------------------------|
20+
| Chain ID | 175200 |
21+
| Name | Lit Chain |
22+
| RPC URL | https://lit-chain-rpc.litprotocol.com |
23+
| Block Explorer URL | https://lit-chain-explorer.litprotocol.com |
24+
| Currency Symbol | LITKEY |
25+
| Currency Decimals | 18 |
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import React from 'react';
2+
3+
export default function AddLitChainButton() {
4+
const addNetwork = () => {
5+
const params = [
6+
{
7+
chainId: '0x2AC60',
8+
chainName: 'Lit Chain',
9+
nativeCurrency: {
10+
name: 'Lit Protocol',
11+
symbol: 'LITKEY',
12+
decimals: 18,
13+
},
14+
rpcUrls: ['https://lit-chain-rpc.litprotocol.com'],
15+
blockExplorerUrls: [
16+
'https://lit-chain-explorer.litprotocol.com',
17+
],
18+
},
19+
];
20+
21+
window.ethereum
22+
.request({ method: 'wallet_addEthereumChain', params })
23+
.then(() => console.log('Success'))
24+
.catch(error => console.log('Error', error.message));
25+
};
26+
27+
return (
28+
<button onClick={addNetwork}>Add Lit Chain to Metamask</button>
29+
);
30+
}

0 commit comments

Comments
 (0)