# Gravity

<figure><img src="https://3420642431-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHBFQDThxW7Uo7iHfOHG5%2Fuploads%2FSIR7CO3eCG701FuvYMw7%2FUntitled%20design%20(38).png?alt=media&#x26;token=28be38e3-6010-4c76-adbc-6260aee27494" 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://gravity.xyz/">Website</a></td><td><a href="https://www.okx.com/web3/explorer/gravity-alpha">Chain Explorer</a></td><td><a href="https://discord.gg/GravityChain">Discord</a></td><td><a href="http://t.me/GravityChain">Telegram</a></td><td><a href="https://x.com/GravityChain">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 Gravity Chain, developed by Galxe, is a Layer 1 blockchain engineered to revolutionize cross-chain interactions at scale. Specifically designed for mass adoption, this blockchain abstracts the complexities of multi-chain transactions, providing a seamless and secure experience for both developers and users. Gravity integrates cutting-edge technologies like Zero-Knowledge Proofs and the Jolteon consensus algorithm, ensuring high throughput, near-instant finality, and robust security

By offering advanced features such as gas abstraction and full EVM compatibility, Gravity empowers developers to deploy smart contracts effortlessly while enhancing the overall user experience. Integrated deeply within the Galxe ecosystem, Gravity serves as the backbone for a wide array of decentralized applications, making it a pivotal force in the evolution of Web3

## Connect your wallet to Gravity

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>Gravity</th><th data-hidden>Xai Testnet (Sepolia)</th></tr></thead><tbody><tr><td>RPC URL</td><td><a href="https://rpc.gravity.xyz">https://rpc.gravity.xyz</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>1625</td><td>37714555429</td></tr><tr><td>Currency symbol</td><td>G</td><td>sXAI</td></tr><tr><td>Block explorer URL</td><td><a href="https://explorer.gravity.xyz">https://explorer.gravity.xyz</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 Gravity chain

### Bridge to Gravity

Tokens can be bridged to Gravity using the official Gravity bridge or [multi-chain Stargate bridge](https://stargate.finance/bridge)

{% hint style="warning" %}
You will need a fraction of ETH to pay for bridging fees from any supported chain to Gravity
{% endhint %}

{% hint style="danger" %}
Gas on the Gravity chain is paid in G, which can currently only be obtained on the Ethereum chain. Therefore, we recommend bridging it as the first token so you can process transactions
{% endhint %}

{% hint style="info" %}
To bridge USDC, USDT, or wETH, use the [Stargate bridge](https://stargate.finance/bridge). For G, use the bridge below
{% endhint %}

1. Visit the [Gravity Bridge](https://bridge.gravity.xyz/) and connect your wallet.\
   You will see the screen below:<br>

   <figure><img src="https://3420642431-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHBFQDThxW7Uo7iHfOHG5%2Fuploads%2FngRb2b7HGOKl1uUw0gNw%2Fimage.png?alt=media&#x26;token=6bba5fec-b27d-40cb-af41-dde84e576311" alt=""><figcaption></figcaption></figure>

&#x20;  2\. Input the amount of G you want to transfer to Gravity and click <mark style="color:yellow;">Deposit</mark>

<figure><img src="https://3420642431-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHBFQDThxW7Uo7iHfOHG5%2Fuploads%2FqLUEtwevm8XfTynuwGjx%2Fimage.png?alt=media&#x26;token=87215656-6ceb-4798-abcf-2a0e106b9f7b" alt=""><figcaption></figcaption></figure>

3. Approve, then initiate the deposit, which will require confirmation in your wallet interface

<figure><img src="https://3420642431-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHBFQDThxW7Uo7iHfOHG5%2Fuploads%2FwthcZO9wcXYEqxDhUNkg%2Fimage.png?alt=media&#x26;token=eccadedb-2047-49f7-9316-349fa4a6cade" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3420642431-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHBFQDThxW7Uo7iHfOHG5%2Fuploads%2FJsJvxIQCtDzTA4NpRwuk%2Fimage.png?alt=media&#x26;token=4f85b8de-4a6f-4bc5-b944-e55cf77f36ee" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3420642431-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHBFQDThxW7Uo7iHfOHG5%2Fuploads%2FsCfdFENDSk5GAIBNBNo3%2Fimage.png?alt=media&#x26;token=37a39b45-be71-40fb-a7eb-314ad8f68a88" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3420642431-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHBFQDThxW7Uo7iHfOHG5%2Fuploads%2F0PSAvDGLBzBDxDQIW8Mn%2Fimage.png?alt=media&#x26;token=08d84511-b1d7-4807-baed-e31f0dbe0870" alt=""><figcaption></figcaption></figure>

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