Running a Osmosis Node

Running a Osmosis node is crucial for participating in the Osmosis network. This guide covers various methods to set up and run a Osmosis node, including binary executions.

Running Osmosis with Binary

Prerequisites

  • osmosisd Binary: Build or download the latest on-chain version of osmosisd.
  • Permissions: Ensure executable permissions for your binary.

Steps

  1. Execute osmosisd Binary: Run the command ./osmosisd [command] [flags]. For starting the daemon, use ./osmosisd start.
  2. Systemd Configuration: Configure osmosisd to run as a systemd service for reliability.
    • Move the binary to /usr/bin with cp osmosisd /usr/bin/.
    • Create and edit the systemd service file /etc/systemd/system/osmosisd.service with appropriate configurations.
  3. Manage Service:
    • Reload systemd: sudo systemctl daemon-reload
    • Restart osmosisd: sudo systemctl restart osmosisd
    • Enable on boot: sudo systemctl enable osmosisd
    • Check logs: journalctl -u osmosisd -f

Configuring osmosisd

  • Config Files: Located in $HOME/.osmosis/config.
    • config.toml: General settings.
    • app.toml: Application-specific settings.
    • client.toml: Stargaze client settings.