Introduction
The Cosmos SDK requires Go and a built binary to run a blockchain node. This tutorial walks through installing Go, building thesimd binary, and configuring your environment to run a Cosmos SDK node.
Prerequisites
This tutorial assumes you have the following installed:- A terminal application
- A code editor
- Basic familiarity with command-line operations
1. Install Go
The Cosmos SDK requires Go version 1.25 or higher. Download the installer from the official Go downloads page and follow the installation instructions for your operating system. Verify the installation:Configure Go environment variables
- Linux
- macOS
- Windows
Open your shell config file (Apply changes:
~/.bashrc or ~/.zshrc) and add:source ~/.bashrcgo env GOPATH
2. Clone the Cosmos SDK repository
This tutorial usessimapp, the Cosmos SDK example application. Clone the Cosmos SDK repository to access simapp.
- Navigate to your preferred directory. This example uses
~/Documents/GitHub:
- Clone the Cosmos SDK repository:
- Navigate into the cloned repository:
3. Build the simd binary
Thesimd binary is the command-line interface for interacting with the Cosmos SDK blockchain.
Build and install the simd binary:
Windows users: If
make is not available, you can install it via Chocolatey (choco install make) or use WSL2.simd is working:
Next steps
- Set up the keyring to create and manage cryptographic keys