Gravity 백서

Gravity

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 23쪽 중 3쪽

swap.org/explore/tokens/ethereum/0x9C7BEBa8F6eF6643aBd725e45a4E8387eF260649) * [Symbiosis](https://app.symbiosis.finance/swap?amountIn\&chainIn=Ethereum\&chainOut=Gravity\&tokenIn=ETH\&tokenOut=G) * [Gas.zip](https://www.gas.zip/) * [Comet](https://cometbridge.app/instantGas) * If you have a balance in any vault in [Smart Saving](https://app.galxe.com/SmartSavings), click the corresponding vault and choose to receive the withdrawal token as G ### API To get G supplies: * **Total Supply:** <https://api.galxe.com/services/g-supply/total> * **Circulating Supply:** <https://api.galxe.com/services/g-supply/circulating> ## **G Utilities** Beyond migrating the existing utilities from GAL, G will expand its range of applications to serve all users within our ecosystems. Here are the key functionalities of G: * **Staking:** Stake G to actively participate in governance, secure the network, and contribute to the long-term sustainability of both the Gravity and Galxe ecosystems. Additionally, G stakers gain convenient access to exclusive rewards from applications built by Galxe. * **Governance:** G DAO is governed by G holders. Acting as a transparent, secure, and decentralized framework, G DAO fosters unity and progress among its members. * **Transacting:** As the native gas token of Gravity Chain, G is used for executing and paying for all onchain transactions. * **Payments:** As the utility token in the Galxe ecosystem, G is used to pay fees for applications built by Galxe, including Galxe Quest, Galxe Passport, Galxe Score, Alva, and more. ### Additional Examples of G Utilities in the Galxe Ecosystem * **Galxe Shop** Shop from thousands of online merchants and earn cash back in G. Galxe Shop offers a seamless and rewarding shopping experience, exclusive to the Galxe community. * **Galxe Earn** G stakers may be eligible for exclusive airdrops from partners within the Galxe ecosystem. Powered by Galxe Quest, Galxe Earn facilitates direct engagement and smarter distribution of rewards. # How to Get G How to bridge G to Gravity L1, buy G on exchanges, or migrate from Alpha Mainnet (L2). You need native G on Gravity L1 to pay gas, stake, or participate in governance. This page covers the three realistic routes: the **canonical bridge from Ethereum**, **direct withdrawals from centralized exchanges**, and **migration from Alpha Mainnet (L2)**. {% hint style="info" %} This page is the L1 view. The Alpha Mainnet (L2) bridging guide is preserved at [How to Get G (Gravity Alpha, L2)](/legacy-alpha-mainnet-l2/bridge-to-gravity) and remains valid for anyone still using L2. {% endhint %} ## Option 1: Canonical bridge from Ethereum {% hint style="warning" %} **The canonical bridge is one-way today.** It moves G from Ethereum to Gravity L1 only — there is currently no route to bridge native G from Gravity L1 back to Ethereum. The return leg is on the roadmap. Only bridge what you intend to keep on L1. {% endhint %} The canonical bridge locks ERC-20 G on Ethereum and issues native G on Gravity L1 at a 1:1 ratio. End-to-end takes a few minutes once the Ethereum transaction is confirmed. The bridge consists of two contracts on Ethereum — `GravityPortal` (the generic message outbox) and `GBridgeSender` (which locks the user's G ERC-20 and forwards the bridge message to the Portal) — paired with the `GBridgeReceiver` contract on Gravity L1 (deployed at genesis) that mints native G once the consensus engine relays the verified message through the native oracle. Contract addresses are listed in [Gravity Mainnet (L1) Contracts](/developer-resources/mainnet#cross-chain-bridge). {% hint style="info" %} **Bridge UI:** The unified [Get G portal](https://bridge.gravity.xyz/) at `bridge.gravity.xyz` is the single entry point for bridging G to Gravity. See the [Get G One Portal](https://gravity.xyz/blog/get-g-one-portal-every-option-to-acquire-g-tokens) announcement for all options. {% endhint %} ### Step-by-step 1. Hold G as ERC-20 on Ethereum at [`0x9C7BEBa8F6eF6643aBd725e45a4E8387eF260649`](https://etherscan.io/token/0x9C7BEBa8F6eF6643aBd725e45a4E8387eF260649) (buy on a CEX, on Uniswap, etc.). 2. Open the canonical bridge UI (see the box above) and connect your wallet. 3. Approve the bridge contract to spend your G. 4. Send the bridge transaction, paying the ETH bridge fee on Ethereum. 5. Wait for the bridge to relay your message to L1; native G arrives at your recipient address shortly after Ethereum finality. ## Option 2: Centralized exchanges G is currently listed on Binance, OKX, Bitget, KuCoin, MEXC, and BitMart, with deposits and withdrawals available on Ethereum (and on Mantle L2 on some). Once an exchange adds direct Gravity L1 support, you can withdraw native G to your L1 address in a single step. Until then, withdraw G as ERC-20 to Ethereum and follow **Option 1** to bridge in. Confirm the network the exchange uses — L1 vs Ethereum vs Alpha Mainnet (L2) — before withdrawing. For the up-to-date exchange list, see [CoinMarketCap](https://coinmarketcap.com/currencies/gravity-token/), [CoinGecko](https://www.coingecko.com/en/coins/gravity), or the [Get G portal announcement (April 2025)](https://gravity.xyz/blog/get-g-one-portal-every-option-to-acquire-g-tokens). ## Option 3: Migrate from Alpha Mainnet (L2) to L1 If you hold native G on Alpha Mainnet (L2, Chain ID `1625`): 1. Use the [L2 canonical bridge](https://bridge.gravity.xyz/) to withdraw your G back to Ethereum. The L2 rollup's optimistic-challenge period means this leg takes \~7 days. 2. Once the G ERC-20 is back on Ethereum, follow **Option 1** above to bridge into L1. Direct L2-to-L1 routing may be added through third-party aggregators; check current options at [Jumper](https://jumper.exchange/) or [Symbiosis](https://app.symbiosis.finance/) when L1 is listed. ## Other ways to acquire G * **Fiat onramps** — Buy G with credit card, bank transfer, or local payment methods through [Onramp.money](https://onramp.money/) or [Alchemy Pay](https://ramp.alchemypay.org/). These currently deliver G ERC-20; bridge to L1 using **Option 1**. * **Cross-chain aggregators** — [LI.FI](https://li.fi/) supports moving G across 37+ networks; once L1 is a routing destination, you can bridge from any supported source chain in a single transaction. ## After you have G on L1 * Add the network to your wallet — see [Gravity Mainnet (L1)](/gravity-networks/l1-mainnet). * Stake or delegate — see [G Token](/the-g-token/g-token#g-utilities). * Explore the ecosystem — see [Wallets & Exchanges](/ecosystem-infrastructures/supported-wallets) and [Cross-chain Interoperability](/ecosystem-infrastructures/cross-chain-interoperability). ## See also * [G Token](/the-g-token/g-token) — token overview and utilities. * [Token Contracts on Gravity](/the-g-token/token-contracts) — L1 ERC-20 list (wG, USDT, USDC, …). * [How to Get Test Tokens](/the-g-token/how-to-get-test-tokens) — for the Longevity Testnet (L1). # How to Get Test Tokens ## Claiming Test Tokens The Gravity Faucet provides test tokens for both Testnet (L2) and Testnet (L1). ### Request Limits * 1 G token per address every 24 hours * Separate limits for Testnet (L2) and Testnet (L1) ### Testnet (L2) vs Testnet (L1) | Environment | Layer | Purpose | ChainID | | ---------------- | ------- | -------------------- | ------- | | **Testnet (L2)** | Layer 2 | Testing applications | 13505 | | **Testnet (L1)** | Layer 1 | Development | 7771625 | ### How to Claim 1. Visit <https://faucet.gravity.xyz/> 2. Connect your wallet 3. Select network (Testnet (L2) or Testnet (L1)) 4. Request tokens # Token Contracts on Gravity Canonical ERC-20 token contracts on Gravity L1. This page is the authoritative list of canonical ERC-20 token contracts on Gravity L1. The list is populated as tokens are bridged in and deployed. {% hint style="info" %} For the Alpha Mainnet (L2, Chain ID `1625`) token list — which has G / wG / WBTC / DAI / ETH(WETH) / USDT / USDC — see [Token Contracts on Gravity Alpha (L2)](/legacy-alpha-mainnet-l2/token-contracts-on-gravity). Addresses below are for **L1 only** and are different from the L2 addresses. {% endhint %} ## Native token | Token | L1 address | Notes | | ----- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | G | Native coin — no ERC-20 address | Used for gas, staking, and governance. Bridged from Ethereum ERC-20 `0x9C7BEBa8F6eF6643aBd725e45a4E8387eF260649` via the canonical bridge (see [How to Get G](/the-g-token/how-to-get-g)). | ## Bridged assets These addresses are populated as the canonical bridge goes live for each asset. Each entry lists the canonical L1 address, the Ethereum source contract, and the official bridge route used. | Token | L1 address | Ethereum source | Official bridge | | --------------------- | -------------------------------------------- | ------------------------------------------------------------ | ------------------ | | wG (Wrapped G) | `0xBB859E225ac8Fb6BE1C7e38D87b767e95Fef0EbD` | native G on L1 (wrapper, not bridged from an external chain) | — | | WETH.e (Bridged WETH) | `0x9Da9C5b2CBf7dcC773071338A6480e0E5FDee177` | Native ETH | wiring in progress | | USDT.e (Bridged USDT) | `0x06Fd3e67231baea179676c490482372F7Fb4A3f2` | `0xdac17f958d2ee523a2206206994597c13d831ec7` | wiring in progress | | USDC.e (Bridged USDC) | `0x979c024b381E25a093b8B4CEb06e74B8140664ff` | `0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48` | wiring in progress | | DAI | TBA | `0x6B175474E89094C44Da98b954EedeAC495271d0F` | TBA | | WBTC | TBA | `0x2260fac5e5542a773aa44fbcfedf7c193bc2c599` | TBA | {% hint style="warning" %} **These three tokens are deployed but not yet usable.** USDC.e follows [Circle's Bridged USDC Standard](https://www.circle.com/bridged-usdc) (FiatToken v2.2 behind a proxy, upgradeable to native USDC by Circle later); USDT.e and WETH.e are Chainlink `BurnMintERC20` contracts. Until the bridge partner (Chainlink) completes the white-glove wire-up, total supply is 0, nothing can be minted, and no bridge route exists — do not integrate them as live assets or provide liquidity against them. Full deployment details and the permission model: [gravity-preinstalls](https://github.com/Galxe/gravity-preinstalls) (`docs/TOKEN_SECURITY.md`). {% endhint %} ## Submitting a new token Canonical tokens are tracked in the public [Galxe/gravity-token-list](https://github.com/Galxe/gravity-token-list) repository (`src/tokenlist.json`). To get your token added: 1. Deploy the ERC-20 on Gravity L1. 2. Fork [Galxe/gravity-token-list](https://github.com/Galxe/gravity-token-list). 3. Add an entry to `src/tokenlist.json` with `chainId: 127001`, address, symbol, decimals, and logo URI. 4. Open a PR following the template. The Gravity team reviews for basic sanity (no impersonation, verified contract, correct metadata). ## See also * [G Token](/the-g-token/g-token) — native token overview. * [How to Get G](/the-g-token/how-to-get-g) — bridging flow. * [Gravity Mainnet (L1) Contracts](/developer-resources/mainnet) — system and bridge contract addresses. * [Legacy L2 token list](/legacy-alpha-mainnet-l2/token-contracts-on-gravity) — Alpha Mainnet (L2) canonical list. # Gravity Mainnet (L1) Gravity Mainnet (L1) network reference — chain ID, RPC, explorer, bridge. Gravity Mainnet is the production deployment of Gravity L1 — an EVM-compatible Layer 1 blockchain powered by AptosBFT consensus and a parallel EVM execution layer (Grevm on Gravity Reth), with a native on-chain oracle built into the protocol. This page is the canonical source of connection parameters for wallets, dapps, and infrastructure providers. ## Network Details [*Add Gravity Mainnet to MetaMask*](https://chainlist.org/chain/127001) * **Chain ID:** `127001` * **Currency Symbol / Native Token:** `G` * **Native token decimals:** `18` * **RPC Endpoint:** <https://mainnet-rpc.gravity.xyz> * **Block Explorer:** [https://mainnet-explorer.gravity.xyz](https://mainnet-explorer.gravity.xyz/) (Blockscout) * **Chain Logo:** <https://assets.gravity.xyz/chain_logo.png>, or [visit this link](https://gal.xyz/brand) for different versions ## Add Gravity to your wallet Gravity Mainnet can be added as a custom network to any EVM-compatible wallet (MetaMask, OKX Wallet, Trust Wallet, Rainbow, etc.). Use the one-click [ChainList entry](https://chainlist.org/chain/127001), or add manually using the values above. ## Getting G You need G to pay gas on Gravity L1. See [How to Get G](/the-g-token/how-to-get-g) for bridging from Ethereum, CEX withdrawals, and migration from Alpha Mainnet (L2). ## RPC namespaces The public endpoint exposes the standard Ethereum JSON-RPC surface (`eth`, `net`, `web3`). If your workload needs higher throughput than the public endpoint offers, consider running your own node or using one of the [Node Providers](/ecosystem-infrastructures/node-providers). ## See also * [Gravity Mainnet Hardforks](/gravity-networks/mainnet-hardforks) — required node version and activation schedule. * [Gravity Longevity Testnet (L1)](/gravity-networks/l1-longevity-testnet) — stable public testnet, Chain ID `7771625`. * [G Token](/the-g-token/g-token) — native token overview. * [Token Contracts on Gravity](/the-g-token/token-contracts) — L1 ERC-20 list. * [Gravity Mainnet (L1) Contracts](/developer-resources/mainnet) — system and bridge contract addresses. * [Legacy: Alpha Mainnet (L2)](/legacy-alpha-mainnet-l2/using-gravity-alpha-mainnet-l2) — for readers looking for the 2024 Arbitrum Nitro rollup (Chain ID `1625`). # Gravity Mainnet Hardforks Gravity Mainnet (L1) hardfork schedule, required node version, and what happens if a node misses an activation. Mainnet (chain ID `127001`) activation times are compiled into the `gravity_node` release. Editing `genesis.json` does not change them. If genesis disagrees with the binary, the node keeps the binary value. Validators, VFNs, and public full nodes must all run the required release before the next activation. ## Current required version Upgrade to [v1.9.1](https://github.com/Galxe/gravity-sdk/releases/tag/v1.9.1) before **2026-08-18 02:00:00 UTC**. ```bash docker pull ghcr.io/galxe/gravity_node:v1.9.1 ``` Source builds must `git checkout v1.9.1` before compiling. See the PFN, VFN, and validator run guides. ## Schedule Newest first. Only the top row still requires action. | Hardfork | Activation (UTC) | Unix | First release | | ------------ | ------------------- | ------------ | ------------------------------------------------------------------ | | Beta + Osaka | 2026-08-18 02:00:00 | `1787018400` | [v1.9.1](https://github.com/Galxe/gravity-sdk/releases/tag/v1.9.1) | | Alpha | 2026-07-27 05:00:00 | `1785128400` | [v1.8.0](https://github.com/Galxe/gravity-sdk/releases/tag/v1.8.0) | | Prague | 2026-06-29 05:00:00 | `1782709200` | [v1.7.3](https://github.com/Galxe/gravity-sdk/releases/tag/v1.7.3) | ## If you miss a hardfork A node still on the previous rules executes the new schedule differently. The first block whose local execution hash does not match the committed hash stops the process. That block may be the activation block, or a later block. This is fail-stop: the node does not keep serving a private fork. RPC height stops increasing. Search logs for: ``` commit_info mismatch Block hash mismatch assertion `left == right` failed ``` There is no dedicated "hardfork missed" message. The failure is the same hash mismatch used for any execution-spec divergence. ## See also * [Gravity Longevity Testnet Hardforks](/gravity-networks/testnet-hardforks) * [Run a Gravity Mainnet Public Full Node](/gravity-networks/run-a-mainnet-pfn) * [Run a Gravity Mainnet Public Full Node With Docker](/gravity-networks/run-a-mainnet-pfn-with-docker) * [Run a Gravity Mainnet VFN](/gravity-networks/run-a-mainnet-vfn) * [Run a Gravity Mainnet Validator (Invite Only)](/gravity-networks/run-a-mainnet-validator) # Run a Gravity Mainnet Public Full Node Run a Gravity Mainnet (L1) Public Full Node. Covers binaries, genesis artifacts, public/VFN seeds, deployment, database warm start, and sync verification for a PFN/RPC endpoint. This guide walks you through running a Public Full Node (PFN) on Gravity Mainnet (L1, Chain ID `127001`). A PFN syncs from upstream public or VFN seeds and can serve EVM JSON-RPC for your applications, indexers, or internal services. A PFN does **not** participate in consensus, does **not** hold validator stake, and does **not** require an invite. If you only need occasional reads or writes, you can use the public endpoint at <https://mainnet-rpc.gravity.xyz> instead. {% hint style="warning" %} **Required version.** Mainnet nodes must run [v1.9.1](https://github.com/Galxe/gravity-sdk/releases/tag/v1.9.1) before **2026-08-18 02:00:00 UTC**. See [Gravity Mainnet Hardforks](/gravity-networks/mainnet-hardforks). {% endhint %} > **Placeholders.** Commands below use `<YOUR_...>` placeholders. Replace each value before running. Never commit private keys, generated identities, or node databases to version control. ## Network Role Gravity L1 separates node traffic into validator, VFN, and public networks. A PFN uses the public network and syncs outward from upstream infrastructure: ``` validators --VFN net--> VFN --public net--> PFN / RPC --> app or indexer ``` Use a PFN when you want: * a private or high-throughput JSON-RPC endpoint; * a node close to your backend or indexer; * independent chain data for analytics or monitoring; * no validator-set or governance operations. ## Prerequisites 1. **A Linux x86-64 host.** Production nodes are built and run on Ubuntu 24.04 LTS. Build on the same OS family that you deploy to. 2. **`gravity_node` and `gravity_cli`.** Build from source: ```bash git clone https://github.com/Galxe/gravity-sdk.git cd gravity-sdk git checkout v1.9.1 RUSTFLAGS="--cfg tokio_unstable" \ cargo build --profile quick-release -p gravity_node -p gravity_cli ``` The binaries land in `target/quick-release/`. You can also download the [v1.9.1 release](https://github.com/Galxe/gravity-sdk/releases/tag/v1.9.1). For `gravity_cli` command usage, see the [Gravity CLI Skill](https://github.com/Galxe/gravity-sdk/blob/main/.agents/skills/gravity-cli/SKILL.md). 3. **Mainnet `genesis.json` and `waypoint.txt`.** These artifacts pin the exact chain you are joining. Download the canonical files from [`gravity-sdk/genesis/mainnet`](https://github.com/Galxe/gravity-sdk/tree/main/genesis/mainnet); do not regenerate genesis locally for mainnet. 4. **An upstream public-network seed.** For each seed you need its `peer_id`, host, public port, and `network_public_key`. The current public PFN seeds are listed below. 5. **SSD/NVMe storage.** Chain data grows with uptime. Budget well above the current chain size. ## 1. Prepare Genesis Artifacts Place the canonical mainnet artifacts where your cluster config references them: ```bash mkdir -p <YOUR_GRAVITY_SDK_PATH>/cluster/output curl -fsSL https://raw.githubusercontent.com/Galxe/gravity-sdk/main/genesis/mainnet/genesis.json \ -o <YOUR_GRAVITY_SDK_PATH>/cluster/output/genesis.json curl -fsSL https://raw.githubusercontent.com/Galxe/gravity-sdk/main/genesis/mainnet/waypoint.txt \ -o <YOUR_GRAVITY_SDK_PATH>/cluster/output/waypoint.txt ``` ``` <YOUR_GRAVITY_SDK_PATH>/cluster/output/genesis.json <YOUR_GRAVITY_SDK_PATH>/cluster/output/waypoint.txt ``` If the artifacts live elsewhere, you can point to absolute paths in `genesis_source`: ```toml [genesis_source] genesis_path = "<YOUR_MAINNET_ARTIFACT_DIR>/genesis.json" waypoint_path = "<YOUR_MAINNET_ARTIFACT_DIR>/waypoint.txt" ``` The `genesis.json` and `waypoint.txt` must match each other. A wrong pair can start a node on a different chain identity and prevent it from syncing mainnet. ## 2. Gather Seed In
프로젝트로 돌아가기