Cosmos_full_node
Chapter 15: Cosmos Full Node Setup
Section titled “Chapter 15: Cosmos Full Node Setup”Overview
Section titled “Overview”A full node in Cosmos stores the complete blockchain history and validates all transactions but doesn’t participate in block production like validators.
15.1 Full Node vs Validator
Section titled “15.1 Full Node vs Validator”| Aspect | Full Node | Validator |
|---|---|---|
| Block Production | No | Yes |
| Staking Required | No | Yes (ATOM) |
| Can Be Jailed | No | Yes |
| Hardware | Less resources | High resources |
| Use Case | RPC, indexing | Consensus |
15.2 Setup Full Node
Section titled “15.2 Setup Full Node”Install Gaiad
Section titled “Install Gaiad”# Install Go first, then:git clone https://github.com/cosmos/gaia.gitcd gaiamake installInitialize Node
Section titled “Initialize Node”# Initializegaiad init my-full-node --chain-id cosmoshub-4
# Download genesiswget -O ~/.gaia/config/genesis.json \ https://raw.githubusercontent.com/cosmos/mainnet/master/genesis.jsonStart Node
Section titled “Start Node”# Basic startgaiad start
# With seedsgaiad start \ --seeds="seed@node:26656" \ --p2p.persistent_peers="peer@node:26656"15.3 RPC Configuration
Section titled “15.3 RPC Configuration”Enable RPC
Section titled “Enable RPC”[rpc]laddr = "tcp://0.0.0.0:26657"Common RPC Commands
Section titled “Common RPC Commands”# Get statuscurl http://localhost:26657/status
# Get blockcurl http://localhost:26657/block?height=10000
# Get validatorscurl http://localhost:26657/validators15.4 Pruning
Section titled “15.4 Pruning”Configure Pruning
Section titled “Configure Pruning”[pruning]pruning = "default"pruning-keep-recent = "100"pruning-keep-every = "500"15.5 State Sync
Section titled “15.5 State Sync”Quick Sync
Section titled “Quick Sync”# Enable state syncgaiad start --statesync.enable --statesync.rpc_servers="server1,server2" --statesync.trust_height=12345 --statesync.trust_hash=abcSummary
Section titled “Summary”- Full nodes don’t stake but validate transactions
- RPC on port 26657
- Can enable state sync for faster setup
- Prune old data to save storage
Next Chapter
Section titled “Next Chapter”In Chapter 16: Cosmos RPC & API Configuration, we’ll explore Cosmos APIs.
Last Updated: 2026-02-20