# XAI

<figure><img src="/files/Te6TXvstimDRGI6gCYTi" alt=""><figcaption></figcaption></figure>

<table data-header-hidden><thead><tr><th></th><th></th><th></th><th></th><th></th><th data-hidden>Xai Testnet (Sepolia)</th></tr></thead><tbody><tr><td><a href="https://xai.games/">Website</a></td><td><a href="https://explorer.xai-chain.net">Chain Explorer</a> / <a href="https://www.ondora.xyz/network/xai/interactions">B</a></td><td><a href="https://discord.com/invite/xaigames">Discord</a></td><td><a href="https://t.me/XaiSentryNodes">Telegram</a></td><td><a href="https://twitter.com/XAI_GAMES">X</a></td><td><a href="https://testnet-v2.xai-chain.net/rpc">https://testnet-v2.xai-chain.net/rpc</a></td></tr></tbody></table>

The Xai Blockchain, developed by Offchain Labs and overseen by the Xai Foundation, was custom-developed to address the needs of web3 gaming at scale. Tailored specifically for gaming, this blockchain offers traditional gamers an abstracted wallet and account experience, provides developers with increased gas and contract limits, and establishes a fully decentralized ecosystem that fosters trust and transparency for all participants. By leveraging Ethereum's robust security measures, the XAI chain cements its resilience against potential hacks and other vulnerabilities

## Connect your wallet to XAI

Throughout this guide, we will assume that you are using the Metamask wallet since it is the one most people use, the process of setting up a wallet should be very similar regardless of the wallet you choose

1. The first step is to open Metamask and select the <mark style="color:yellow;">network icon</mark> dropdown menu
2. When the pop-up appears, click <mark style="color:yellow;">Add Network</mark>
3. The Add a network page will open. Add the following details:

<table><thead><tr><th>Network name</th><th>Xai Mainnet</th><th data-hidden>Xai Testnet (Sepolia)</th></tr></thead><tbody><tr><td>RPC URL</td><td><a href="https://xai-chain.net/rpc">https://xai-chain.net/rpc</a></td><td><a href="https://testnet-v2.xai-chain.net/rpc">https://testnet-v2.xai-chain.net/rpc</a></td></tr><tr><td>Chain ID</td><td>660279</td><td>37714555429</td></tr><tr><td>Currency symbol</td><td>XAI</td><td>sXAI</td></tr><tr><td>Block explorer URL</td><td><a href="https://explorer.xai-chain.net/">https://explorer.xai-chain.net/</a></td><td><a href="https://testnet-explorer-v2.xai-chain.net/">https://testnet-explorer-v2.xai-chain.net/</a></td></tr></tbody></table>

Once you're finished, click <mark style="color:yellow;">Save</mark>

4. You are now connected to the XAI chain

### Bridge to XAI

Tokens can be bridged to XAI using the official Arbitrum bridge.

{% hint style="warning" %}
You will need a fraction of ETH to pay for bridging fees from Arbitrum to XAI
{% endhint %}

{% hint style="danger" %}
Gas on the Xai chain is paid in XAI - therefore, we recommend bridging it as the first token so you can process transactions
{% endhint %}

{% hint style="info" %}
Any ERC-20 tokens compatible with Arbitrum can be bridged to XAI - you must input and add the contract address of the token before initiating the bridging process
{% endhint %}

<figure><img src="/files/y8Grzihfu1sDQRiUAFLm" alt=""><figcaption></figcaption></figure>

1. Visit the [Arbitrum Bridge](https://bridge.arbitrum.io/?destinationChain=xai\&sourceChain=arbitrum-one) and connect your wallet. Ensure your wallet is set up for Arbitrum. \
   You will see the screen below:<br>

   <figure><img src="/files/hgJIyMJrl8noikjt7Nvo" alt=""><figcaption></figcaption></figure>

2\. Input the amount of XAI (or any other token) you want to transfer to XAI and click <mark style="color:yellow;">Move funds to XAI</mark>

<figure><img src="/files/2UQE4g991h8YlBen7Bbf" alt=""><figcaption></figcaption></figure>

3\. Confirm the transaction in your wallet

<figure><img src="/files/SDqclqiEADLLyr3SiNF8" alt=""><figcaption></figcaption></figure>

4\. The transaction will show as <mark style="color:red;">pending</mark> on the next page

<figure><img src="/files/QeKzunk3AsxRjpQ2Fit1" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
The bridging transfer should take approximately 1 minute, but it may take longer during periods of high traffic
{% endhint %}


---

# 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.camelot.exchange/orbital-liquidity-network/xai.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.
