For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

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:

    git clone https://github.com/Galxe/gravity-sdk.git
    cd gravity-sdk
    git checkout v1.10.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.10.1 release. For gravity_cli command usage, see the Gravity CLI Skill.

  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; 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:

If the artifacts live elsewhere, you can point to absolute paths in genesis_source:

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 Information

Current Mainnet PFN Connectivity

At the moment, public internet access is intended for the mainnet RPC/PFN fleet. Other validator and VFN hosts should be treated as private/internal unless the Gravity team explicitly shares invite-only seed information.

Public full-node (PFN) operators should dial direct per-node p2p DNS on port 6180. Each seed entry must use that node's own peer_id and network_public_key. Do not point a noise-ik multiaddr at a load-balanced VIP: the peer identity is per-node and will not match an arbitrary backend.

Node
Host
JSON-RPC
Public-network seed port
Peer ID
Network public key

rpc-1

mainnet-rpc-p2p-1.gravity.xyz

8545

6180

38013b46c21388c3fd08ab32b86b478b3109125566d63c2da8fdc941dc474077

234aee14677a3d2198208ea72ca5e95ed75520df27f01f0c36220303ff78642f

rpc-3

mainnet-rpc-p2p-3.gravity.xyz

8545

6180

2d30cf69303d40e0efcdb0f3a6545d43b055e86729287f2f1328c001caeb2be4

0a71ef75482f617203f64b0d5e9e3a66361b5f35e9d709ef873c494cd76d2365

rpc-2 is internal-only (no public p2p address). It is not a published seed for external PFN operators.

For normal JSON-RPC traffic, prefer the aggregate endpoint:

Before using a PFN host as an upstream seed, verify from your node host that the public-network port is reachable:

Validator and VFN joining is currently invite-only for Gravity-operated mainnet seeds. A PFN does not need validator access, but it still needs a reachable public-network upstream seed plus that seed's public identity values.

Use the current public PFN seeds directly in local-pfn.toml. Configure both entries for redundancy; either seed alone is enough to sync if the other is temporarily unreachable.

For an explicit PFN seed, fill these values from the upstream node's public identity:

Value
Meaning

<YOUR_UPSTREAM_PEER_ID>

Upstream sidecar account_address.

<YOUR_UPSTREAM_HOST>

DNS name or IP address of the upstream public listener.

<YOUR_UPSTREAM_PUBLIC_PORT>

Public-network port exposed by the upstream node.

<YOUR_UPSTREAM_NETWORK_PUBLIC_KEY>

Upstream sidecar network_public_key.

Prefer explicit seed entries over seeds = [{ from = "<id>" }] for a standalone PFN config. The { from = ... } form only works when the seed node is also defined in the same TOML file.

3. Write local-pfn.toml

Create a config such as:

Port choices can be changed if you run multiple nodes on one host. Keep the RPC port private unless you intentionally expose it behind your own gateway, authentication, rate limiting, and monitoring.

prune_transactionlookup_distance = 10064 starts reth with --full --prune.transactionlookup.distance 10064. This keeps recent transaction-hash lookup data while allowing older transaction lookup indexes to be pruned. Use a value greater than or equal to 10064 for production PFN/RPC nodes. Treat smaller values, such as short test-only distances, as invalid for mainnet PFN configs and reject them during config review.

Use transaction-lookup pruning when you want lower execution database growth and do not need arbitrary old eth_getTransactionByHash lookups from this node.

If you omit prune_transactionlookup_distance, the generated PFN reth config uses archive-style storage for transaction lookups and keeps historical lookup indexes instead of pruning them. That is simpler for indexers or debugging flows that need old transaction hashes, but it uses more disk over time.

Do not set prune_transactionlookup_distance = 0 to disable pruning. A distance of 0 is still a pruning mode and can prune transaction lookup data aggressively. To run without transaction-lookup pruning, leave the field out.

The example above generates and stores identity files locally. In production, you can also load the node identity from a secret manager. For example:

Pin a fixed secret version instead of latest when you want reproducible deployments and safer rollbacks.

4. Generate Identity and Deploy

From the SDK cluster directory:

Expected layout:

If the package is generated on a build host, copy it to the runtime host while preserving the node directory layout.

5. Optional: Warm Start From a Snapshot or Existing Node

A new PFN can sync from genesis, but that may take a long time on an established chain.

Option A: Download the Public Mainnet Data Snapshot

Gravity publishes a public mainnet PFN data snapshot at a stable URL. Download the current latest cut to your node host (the file is large; resume is supported):

The snapshot is a point-in-time cut. After start, the node syncs forward to the chain tip.

Before the first start, replace the generated empty data directory with the snapshot data:

After extraction, the data directory should contain the snapshot databases while preserving the node directory layout:

Option B: Copy From an Existing Node You Control

If you already run a trusted RPC/PFN, you can copy only the chain databases from that node:

Do not copy rand_db or secure_storage.json from another node. Those files carry node-specific randomness or safety state and should not be reused.

6. Start the Node

Check the logs under the node directory:

7. Verify Sync

Query your local node:

Compare it with the public chain head:

When the two heights are close and your local height keeps advancing, the node is caught up. Gravity has BFT-final blocks: once a block is returned by your node, there is no EVM-style reorg to wait for.

Troubleshooting

Symptom
Cause / fix

seeds: from=<id>: missing host or public_port in cluster.toml

Use an explicit peer_id / address seed, or define the seed node in the same TOML.

Node stays at a low height

Re-check seed peer_id, host, port, network public key, genesis.json, and waypoint.txt.

Height only advances right after each epoch change and stays about one epoch behind

Another node is likely using the same identity.yaml. See Sharing One Network Identity Across Nodes.

net_peerCount returns 0

Usually expected. Gravity syncs through AptosBFT/VFN/public networks, not EVM devp2p gossip. Watch block height instead.

RPC unavailable

Confirm rpc_port is free, the process is running, and logs exist under the deploy directory.

Database paths look nested incorrectly

data_dir should be the deploy directory. Storage is rendered to $data_dir/data.

See Also

Last updated

Was this helpful?