# Setup RPC

### Set up Optimism on MetaMask Wallet

Polynomial is live on Optimism, a layer 2 on Ethereum. To interact and trade on Polynomial, you will need to setup your wallet and connect it to Optimism.

Metamask is the most used wallet on EVM and you can find it here: <https://metamask.io/>

### Automatic Setup

1. Go to <https://optimistic.etherscan.io/>
2. Scroll to the bottom and click on right "Add OP Network".

<figure><img src="https://content.gitbook.com/content/jcfC628fab27Mq32zRqN/blobs/BiUYvCEKe2o3AbhptTZn/Group%201.png" alt=""><figcaption></figcaption></figure>

3. Metamask popup will open and show the network configuration for Optimism; clicking "Approve" you will configure your wallet's setting for Optimism.

<figure><img src="https://content.gitbook.com/content/jcfC628fab27Mq32zRqN/blobs/3FNE1qtsf34GcSlplrec/op%20network.png" alt="" width="345"><figcaption></figcaption></figure>

4. Click on "Switch network" to start using Optimism Chain.

<figure><img src="https://content.gitbook.com/content/jcfC628fab27Mq32zRqN/blobs/0fQmhmRNTyxy5chBRYXa/op%20change.png" alt="" width="340"><figcaption></figcaption></figure>

### Manual Setup

Alternatively, you can add Optimism manually in MetaMask's network settings:

* Network Name: **Optimism**
* RPC URL: **<https://mainnet.optimism.io/>**
* Chain ID: **10**
* Currency Symbol: **ETH**
* Block Explorer URL: **<https://optimistic.etherscan.io/>**

### Update RPCs

Sometimes, the RPC endpoint for Optimism may not function properly, causing slow loading or even a complete lack of loading. To ensure uninterrupted use of the chain, it is recommended to have alternative RPCs provided by third-party services such as [**Alchemy**](https://www.alchemy.com/), [**Infura**](https://www.infura.io/), [**QuickNode**](https://www.quicknode.com/chains/optimism), and [**Ankr**](https://www.ankr.com/rpc/optimism/). A comprehensive list of RPCs and their status can also be found on [**Chainlist**](https://chainlist.org/chain/10).

#### If you encounter this issue, please follow the steps below to change the RPC endpoint:

1. Open your MetaMask and click **`Setting`**;
2. Select the **`Network`** section;
3. Choice the Network "Optimistic Ethereum";
4. In the "New RPC URL" field enter the new endpoint URL and **`Save`** the changes .

<figure><img src="https://content.gitbook.com/content/jcfC628fab27Mq32zRqN/blobs/JnPdQ6NKWOnS0cDLql23/Group%204.png" alt=""><figcaption><p>Click on <strong><code>Setting</code></strong></p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/jcfC628fab27Mq32zRqN/blobs/uvVcLzV8Box7FjXPDezG/Group%203.png" alt=""><figcaption><p>Select the <strong><code>Network</code></strong> section</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/jcfC628fab27Mq32zRqN/blobs/1BFgRTP6aPiDV0ZySpJX/Group%205.png" alt=""><figcaption><p>Select "Optimistic Ethereum", insert the "New RPC URL" and <strong><code>Save</code></strong></p></figcaption></figure>

Now the RPC is updated and should load properly. By following these steps, you will be able to change the RPC endpoint for Optimism. This should resolve any issues you were experiencing with the previous endpoint. If you encounter any further issues, please reach out to our support team for assistance on [**Discord**](https://discord.gg/polynomial).

It is possible to create private endpoints but it could requires a payment, for more info you can check here: <https://www.alchemy.com/overviews/private-rpc-endpoint>.

## Funds to Optimism

To trade you will need ETH for gas fees and the stablecoin sUSD as a collateral. For a more detailed process check the page "[Trading Guide](https://docs.trade.polynomial.fi/trading-guide)".

{% content-ref url="../trading-guide" %}
[trading-guide](https://docs.trade.polynomial.fi/trading-guide)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trade.polynomial.fi/optimism-settings/setup-rpc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
