Skip to main content

Quickstart

This guide will walk you through setting up your development environment, generating keys, and deploying your first smart contract.

Prerequisites

Before you begin, ensure you have:
  • Go 1.24+ - Download
  • Docker - For contract builds (optional but recommended)
  • Rust - For contract development (optional)

Step 1: Install the CLI

From Source

Verify Installation

Step 2: Generate a Keypair

Create your first keypair to interact with the chain:
Save your mnemonic phrase! This is the only way to recover your account. Never share it with anyone.

Step 3: Start Local Development Network

Launch a local testnet with pre-funded accounts:
The localnet provides two pre-funded test accounts:

Step 4: Check Your Balance

Query the balance of the test account:

Step 5: Deploy Your First Contract

5a. Scaffold a New Project

This creates a complete CosmWasm project:

5b. Build the Contract

This uses Docker to create an optimized .wasm file:

5c. Deploy to Local Network

Step 6: Interact with Your Contract

Query Contract State

Execute Contract Method

Step 7: Clean Up

When you’re done, stop the local network:

What’s Next?

Token Operations

Create and manage CW20 tokens

Contract Development

Deep dive into CosmWasm contracts

CLI Reference

Full CLI command documentation

API Reference

REST, RPC, and gRPC endpoints

Troubleshooting

Another process is using the RPC port. Stop any running chain instances:
Install Docker or use local Rust build:
Note: Local builds require Rust with wasm32-unknown-unknown target.
Make sure you’re using a funded test account:
If balance is zero, restart the localnet with --reset: