DAO CLI Guide
Chia DAOs are currently an alpha primitive. This means that DAOs are not yet ready for production use, but you can still test them on either a simulator or a testnet. We recommend against creating DAOs with this primitive on mainnet!
Prior to using the DAO alpha primitive, be sure to read the list of known issues.
Intro
This is a guide for using Chia DAOs from a command line interface (CLI). To follow this guide, you will need:
- Chia version 2.1.2 or later
- A wallet with some TXCH for creating a treasury
- Ideally at least one more wallet to be used for voting on proposals
For more information about Chia DAOs, see:
About
Chia Decentralized Autonomous Organizations (DAOs) are organizations where no central entity is in control. DAOs are funded through their treasuries. Membership is determined by ownership of DAO CATs, which function as ownership shares. Any member can create a proposal, for example to spend some of the DAO's treasury. Members vote on proposals with their ownership shares.
Guide
This guide will use four separate wallets:
- The DAO creator wallet will create the DAO, fund the treasury, distribute voting tokens, and create and vote on proposals.
- DAO participant 1 and DAO participant 2 will join a DAO that already exists. They will acquire voting tokens from the DAO creator. They can also create and vote on proposals.
- The DAO payout wallet will only be used for receiving funds from a spend proposal. This wallet will not join the DAO.
It is possible to replicate almost all of this guide with just one wallet that serves every function listed above. The reason to use four wallets is to show how a DAO would actually work with multiple participants.
Create a DAO
The first step is for the DAO creator wallet to create the DAO. If you are going to follow along, be sure to create and fund your own wallet.
Before creating the DAO, show the status of the DAO creator wallet:
chia wallet show
Chia Wallet:
-Total Balance: 75.997439613215 txch (75997439613215 mojo)
-Pending Total Balance: 75.997439613215 txch (75997439613215 mojo)
-Spendable: 75.997439613215 txch (75997439613215 mojo)
-Type: STANDARD_WALLET
-Wallet ID: 1
In order to create a DAO, your wallet must have at least two coins. If there is only one coin in your wallet, you will get an error. You can use the coins command to see how many coins your wallet contains. For example:
chia wallet coins list