> ## Documentation Index
> Fetch the complete documentation index at: https://docs.injective.network/llms.txt
> Use this file to discover all available pages before exploring further.

# Run a Mainnet Node

> Install, configure, and sync a full node or validator on Injective Mainnet.

Set up and sync an Injective Mainnet node on chain ID `injective-1`. This setup applies to full nodes, sentries, and validators. For public RPCs or a different environment, see [Public Endpoints](https://docs.injective.network/infra/public-endpoints.md), [Run a Testnet Node](https://docs.injective.network/infra/join-a-network.md), or [Run a Local Native Node](https://docs.injective.network/developers-native/developer-setup/local-network.md).

## Prepare the server

Choose hardware for your node’s role using the [Hardware Requirements](https://docs.injective.network/infra/hardware.md).

## Install the Mainnet release

Check the **current Mainnet version** on the [Chain Portal](https://chain.injective.network), then download the matching binary archive from [Injective Foundation releases](https://github.com/InjectiveFoundation/injective-core/releases).

Install `injectived` and the bundled `libwasmvm` using the [Linux installation steps](https://docs.injective.network/developers/injectived/install.md). Run `injectived version` to verify the installed version. Validators also run [Peggo](https://docs.injective.network/infra/validator-mainnet/peggo.md).

## Initialize and configure the node

Run the setup commands as the account that will run `injectived`. Set the moniker to a name that identifies your node.

```bash theme={null}
injectived init my-mainnet-node --chain-id injective-1
```

### Install the Mainnet genesis

`injectived init` creates a default `config/genesis.json` for a new chain. The `--chain-id` flag sets its chain ID. It does not download Mainnet's initial state or validator set. To join `injective-1`, download its genesis from the [Polkachu mirror](https://polkachu.com/genesis/injective). The command below verifies the download against the known Mainnet SHA-256 before it replaces the generated file.

```bash theme={null}
GENESIS_DIR="$HOME/.injectived/config"
curl -fsSL https://snapshots.polkachu.com/genesis/injective/genesis.json \
  -o "$GENESIS_DIR/genesis.mainnet.json" &&
  printf '%s  %s\n' '573b89727e42b41d43156cd6605c0c8ad4a1ce16d9aad1e1604b02864015d528' \
    "$GENESIS_DIR/genesis.mainnet.json" | sha256sum -c - &&
  mv "$GENESIS_DIR/genesis.mainnet.json" "$GENESIS_DIR/genesis.json"
```

Use `~/.injectived/config/app.toml` for application settings such as pruning, gRPC, and REST. Use `config.toml` for CometBFT settings such as peering, RPC listeners, and state sync. Set `timeout_commit = "300ms"` in the `[consensus]` section.

### Peer discovery

Add seeds or persistent peers under `[p2p]` in `config.toml`. Start with Injective’s Mainnet seed listed on the [Chain Portal](https://chain.injective.network/rpcs).

```toml theme={null}
seeds = "d58582c3d49b6cffc465ee12e0d57b3d73f539f7@seed.mainnet.asia.injective.network:26656"
```

For additional seeds, persistent peers, or address books, see [Polkachu](https://polkachu.com/seeds/injective) and [Decentrio](https://decentrio.ventures/infrastructure/injective).

## Sync options

### Restore a snapshot

A recent snapshot is the recommended starting point. Choose a snapshot that matches your database backend and follow the provider’s extraction instructions before starting the node. The [Chain Portal](https://chain.injective.network/snapshots) lists official and community snapshots. Official pruned snapshots use GoLevelDB.

> [!WARNING]
>
> If you are restoring an existing validator, stop it and preserve its signing state before replacing any node data. Follow the [validator snapshot recovery procedure](https://docs.injective.network/infra/coordinated-upgrades.md#recovering-from-a-snapshot) before restarting it.

### Use CometBFT state sync

State sync uses peer snapshots and two trusted RPC servers. Select compatible endpoints from the [Chain Portal](https://chain.injective.network/rpcs). Choose a recent trust height and verify that both RPC servers return the same block hash at that height. Set the following values in `config.toml`:

```toml theme={null}
[statesync]
enable = true
rpc_servers = "<rpc_server_1>,<rpc_server_2>"
trust_height = <recent_height>
trust_hash = "<block_hash_at_trust_height>"
trust_period = "168h0m0s"
```

State sync omits local CosmWasm files. Use a snapshot that includes them or follow the [CometBFT state-sync troubleshooting guide](https://docs.injective.network/infra/coordinated-upgrades.md#apphash-mismatch-after-cometbft-state-sync) before starting the node.

### Replay blocks from peers

With state sync disabled and an empty node data directory, CometBFT downloads and replays blocks from peers. Mainnet replay from genesis requires substantially more time and access to historical blocks.

## Start and verify the node

Start `injectived` after the node is configured and any snapshot data is in place.

```bash theme={null}
injectived start
```

From another terminal, check the chain ID, block height, and sync status:

```bash theme={null}
curl -fsS http://localhost:26657/status | jq '{
  network: .result.node_info.network,
  height: .result.sync_info.latest_block_height,
  catching_up: .result.sync_info.catching_up
}'
```

Expect `injective-1`. The height should advance as the node syncs, and `catching_up` should become `false` once the node reaches the chain tip.

### Run as a systemd service

For a persistent Linux service, create `/etc/systemd/system/injectived.service`. This example assumes an operator account named `injective` with its node data in `/home/injective/.injectived`. Use your actual service account, binary location, and node data path.

```ini theme={null}
[Unit]
Description=Injective Mainnet Node
After=network-online.target

[Service]
User=injective
ExecStart=/usr/bin/injectived start --home /home/injective/.injectived
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
```

Start the service once the foreground process has stopped.

```bash theme={null}
sudo systemctl daemon-reload
sudo systemctl enable --now injectived
sudo journalctl -u injectived -f
```

For automated binary handoffs, see [Cosmovisor](https://docs.injective.network/infra/cosmovisor.md). To join the validator set, continue with [Mainnet Validators](https://docs.injective.network/infra/validator-mainnet/index.md). For upgrades and ongoing operation, see [Upgrade Your Node](https://docs.injective.network/infra/upgrade-node.md) and [Interact with Nodes](https://docs.injective.network/infra/interact-node/index.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.