Skip to main content

CosmWasm Counter Contract

A simple incrementing counter smart contract for CosmWasm / Cosmos chains. A simple incrementing counter smart contract for CosmWasm / Cosmos chains.

Explanation

CosmWasm contracts are compiled to WebAssembly and run on Cosmos SDK chains. The entry_point macro marks the execute function. Messages are defined as enums with serde for JSON serialization.

Code


Canonical knowledge ID: code-example:cosmwasm-counter-contract