DAO CLI
This document contains a comprehensive reference of Chia DAO CLI commands and options.
注意
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.
Reference
add
Functionality: Create a wallet for an existing DAO
Usage: chia dao add [OPTIONS]
Options:
Short Command | Long Command | Type | Required | Description |
---|---|---|---|---|
-wp | --wallet-rpc-port | INTEGER | False | Set the port where the Wallet is hosting the RPC interface. See the rpc_port under wallet in config.yaml |
-f | --fingerprint | INTEGER | False | Set the fingerprint to specify which key to use |
-n | --name | TEXT | False | Set the DAO wallet name |
-t | --treasury-id | TEXT | True | The Treasury ID of the DAO you want to track |
-a | --filter-amount | INTEGER | False | The minimum number of votes a proposal needs before the wallet will recognise it [default: 1] |
-h | --help | None | False | Show a help message and exit |
Example
Start with a wallet with some XCH or TXCH:
chia wallet show
Response:
Chia Wallet:
-Total Balance: 1.0 txch (1000000000000 mojo)
-Pending Total Balance: 1.0 txch (1000000000000 mojo)
-Spendable: 1.0 txch (1000000000000 mojo)
-Type: STANDARD_WALLET
-Wallet ID: 1
Next, join a DAO by passing in its Treasury ID:
chia dao add -n "Test DAO Wallet" -t dfe486693cddf312eae141688e72a0b5f597df152f7f30dcb7c775d0ffaa1a56
At first, the response will indicate that the transaction is in process (you will need to choose your wallet fingerprint if more than one exists):
Adding wallet for DAO: dfe486693cddf312eae141688e72a0b5f597df152f7f30dcb7c775d0ffaa1a56
This may take awhile.