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:Example Output
Example Output
Step 3: Start Local Development Network
Launch a local testnet with pre-funded accounts:Example Output
Example Output
| Account | Balance | Purpose |
|---|---|---|
alice | 1,000,000 XYZ | Development, deployment |
bob | 500,000 XYZ | Testing transfers |
Step 4: Check Your Balance
Query the balance of the test account:Step 5: Deploy Your First Contract
5a. Scaffold a New Project
5b. Build the Contract
.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
Port 26657 already in use
Port 26657 already in use
Another process is using the RPC port. Stop any running chain instances:
Docker not found (during build)
Docker not found (during build)
Install Docker or use local Rust build:Note: Local builds require Rust with
wasm32-unknown-unknown target.Insufficient funds error
Insufficient funds error
Make sure you’re using a funded test account:If balance is zero, restart the localnet with
--reset: