> ## Documentation Index
> Fetch the complete documentation index at: https://litprotocol-feat-rusk-sdk.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Chain Config

export const AddLitChainButton = () => {
  const addNetwork = () => {
    const params = [{
      chainId: '0x2AC60',
      chainName: 'Lit Chain',
      nativeCurrency: {
        name: 'Lit Protocol',
        symbol: 'LITKEY',
        decimals: 18
      },
      rpcUrls: ['https://lit-chain-rpc.litprotocol.com'],
      blockExplorerUrls: ['https://lit-chain-explorer.litprotocol.com']
    }];
    window.ethereum.request({
      method: 'wallet_addEthereumChain',
      params
    }).then(() => console.log('Success')).catch(error => console.log('Error', error.message));
  };
  return <button onClick={addNetwork} className="px-5 py-2 rounded-md bg-gradient-to-r from-[#F97316] to-[#EA580C] text-white font-semibold shadow-md hover:from-[#fb923c] hover:to-[#ea580c] focus:outline-none focus:ring-2 focus:ring-[#F97316] transition-all">
      Add Lit Chain to Metamask
    </button>;
};

Lit Protocol uses dedicated blockchain networks for managing PKP ownership, permissions, and payment operations.

If you're using one of the testnets: Naga Dev or Test, you'll connect to Chronicle Yellowstone, while production applications using Naga Mainnet (COMING SOON) will use the Lit Chain. Configuration details for both networks are below:

<Tabs>
  <Tab title="Chronicle Yellowstone - Testnet">
    ### Chronicle Yellowstone - Lit Protocol Testnet

    | Property | Value                                      |
    | -------- | ------------------------------------------ |
    | ChainID  | 175188 (0x2ac54)                           |
    | Currency | tstLPX                                     |
    | RPC URL  | `https://yellowstone-rpc.litprotocol.com/` |

    Also see [Chainlist](https://chainlist.org/chain/175188) for more details.

    ### Viem Chain Config for the Chronicle Yellowstone network

    ```ts theme={null}
    import { Chain, http } from "viem";

    export const viemChainConfig: Readonly<Chain> = Object.freeze({
      id: 175188,
      name: "Chronicle Yellowstone",
      nativeCurrency: {
        name: "Chronicle Yellowstone",
        symbol: "tstLPX",
        decimals: 18,
      },
      rpcUrls: {
        default: {
          http: ["https://yellowstone-rpc.litprotocol.com/"],
        },
        public: {
          http: ["https://yellowstone-rpc.litprotocol.com/"],
        },
      },
      blockExplorers: {
        default: {
          name: "Yellowstone Explorer",
          url: "https://yellowstone-explorer.litprotocol.com/",
        },
      },
    });
    ```

    Alternatively, we also provide a helper function to get the viem chain config. You can use

    ```ts theme={null}
    litClient.getChainConfig().viemConfig
    ```

    to get the viem chain config. See [Lit Client Reference](/sdk/sdk-reference/lit-client/functions/createLitClient#getchainconfig) for more details.
  </Tab>

  <Tab title="Lit Chain - Mainnet">
    ### Lit Chain - Lit Protocol Mainnet

    <AddLitChainButton />

    To connect to Lit Chain, you can click the button above 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).

    <Note>
      The below and additional chain parameters are available [here](https://hub.conduit.xyz/lit-chain-1rw3jdu82h).
    </Note>

    | Parameter Name     | Value                                                                                    |
    | ------------------ | ---------------------------------------------------------------------------------------- |
    | Chain ID           | 175200                                                                                   |
    | Name               | Lit Chain                                                                                |
    | RPC URL            | [https://lit-chain-rpc.litprotocol.com](https://lit-chain-rpc.litprotocol.com)           |
    | Block Explorer URL | [https://lit-chain-explorer.litprotocol.com](https://lit-chain-explorer.litprotocol.com) |
    | Currency Symbol    | LITKEY                                                                                   |
    | Currency Decimals  | 18                                                                                       |
  </Tab>
</Tabs>
