exampled is a simple Cosmos SDK chain that shows the core pieces of a working app chain. It includes the basic building-block modules for accounts, bank, staking, distribution, slashing, governance, and more, plus a custom x/counter module. In the next tutorials, you’ll build a simple version of that module yourself and then walk through the full implementation.
Before continuing, make sure you have completed the Prerequisites to get your environment set up.
Install the binary
Run the following to compile theexampled binary and place it on your $PATH.
Start the chain
Run the following to start a single-node local chain. It handles all setup automatically: initializes the chain data, creates test accounts, and starts the node. Leave it running in this terminal.Query the counter
Open a second terminal and query the current count:0:
exampled chain is stake.
Submit an add transaction
Send anAdd transaction to increment the counter. This charges a fee from the funded alice account you are sending the transaction from:
Query the counter again
After submitting the transaction, query the counter again to see the updated module state:Next steps
In the following tutorials, you will:- Build a minimal version of this module from scratch to understand the core pattern
- Walk through the full
x/countermodule example to see what it adds - See how modules are wired into a chain and how to run the full test suite