---
# System prepended metadata

title: How to create a SubDAO of Juno Governance

---

# How to create a SubDAO of Juno Governance

ie. how to create a DAO with the Juno Governance module as admin, which is not possible from the UI of daodao.zone as of June 2024.

1. Create a DAO like you normally would, eg. at https://testnet.daodao.zone/dao/create?chain=uni-6 for testing, or https://daodao.zone/dao/create?chain=juno-1 for mainnet.
2. At the end of the wizard, after clicking the "Review" button, check the "Show Instantiate Message" to view something like this:

![image](https://hackmd.io/_uploads/SkS8qmer0.png)

3. Replace the `null` after "admin" with the address of the account you want to set as the admin of the to-be-created DAO, in this case Juno Governance = `juno10d07y265gmmuvt4z0w9aw880jnsr700jvss730`
4. Uncheck the "with Decoded Module Messages" to be able to paste all the Instantiate message text in your `junod` CLI
5. Instantiate the DAO by running a command like `junod tx wasm instantiate 4047 [json] --label [plain_text] --admin juno10d07y265gmmuvt4z0w9aw880jnsr700jvss730 --from [account] --fees [amount_denom] --gas auto --gas-adjustment 1.5`, where:
    - `4047` is the code id of current version of DA0DA0 contracts on Juno mainnet,
    - `[json]` is the message we copied above,
    - `[account]` is your address or the name of the key saved in your junod (if the key is stored on an hardware device, you will probably also need to add `--sign-mode amino-json` to the command)
    - `[amount_denom]` are the fees required for the transaction, which you can get as a response in the raw log after you try (& fail because of not enough fees) sending the transaction with a small amount like the default `10ujuno`; in this case I was instructed to use `153036ujuno`,
    - `auto` is apparently needed if we want to use the `--gas-adjustment` feature, that will calculate a gas estimate to substitute automatically and that I used because the default of `--gas 200000` wasn't working, neither random manual adjustments (the command would seem ok and the transaction signed, but it would show as failed on the explorer).


The actual prompt I used was:
```
junod tx wasm instantiate 4047 '{
  "admin": "juno10d07y265gmmuvt4z0w9aw880jnsr700jvss730",
  "automatically_add_cw20s": true,
  "automatically_add_cw721s": true,
  "description": "This multisig represents the agreement between its members, Juno Development Department (the committer of the Community DEX RFP) and Kintsugi (the chosen proposer & supplier), with Juno Governance (the decentralized client & competent court in case of disputes) as admin, to develop the \"Mercury DEX\" on Juno. Agreement ratification & updates, payments, verification of deliverables & milestones, potential disputes resolution and project management in general will happen through proposals on this DAO whenever possible.",
  "image_url": "ipfs://QmTHxWKvEBoTYZxRJpBfDjMjdAYZDouhY6vWncK7MK8d7b",
  "name": "Mercury DEX Development",
  "proposal_modules_instantiate_info": [
    {
      "admin": {
        "core_module": {}
      },
      "code_id": 4054,
      "label": "DAO_Mercury DEX Development_DaoProposalSingle",
      "msg": "eyJhbGxvd19yZXZvdGluZyI6ZmFsc2UsImNsb3NlX3Byb3Bvc2FsX29uX2V4ZWN1dGlvbl9mYWlsdXJlIjp0cnVlLCJtYXhfdm90aW5nX3BlcmlvZCI6eyJ0aW1lIjoxMjA5NjAwfSwibWluX3ZvdGluZ19wZXJpb2QiOm51bGwsIm9ubHlfbWVtYmVyc19leGVjdXRlIjp0cnVlLCJwcmVfcHJvcG9zZV9pbmZvIjp7Im1vZHVsZV9tYXlfcHJvcG9zZSI6eyJpbmZvIjp7ImFkbWluIjp7ImNvcmVfbW9kdWxlIjp7fX0sImNvZGVfaWQiOjQwNTIsImxhYmVsIjoiREFPX01lcmN1cnkgREVYIERldmVsb3BtZW50X3ByZS1wcm9wb3NlX0Rhb1Byb3Bvc2FsU2luZ2xlIiwibXNnIjoiZXlKa1pYQnZjMmwwWDJsdVptOGlPbTUxYkd3c0ltVjRkR1Z1YzJsdmJpSTZlMzBzSW05d1pXNWZjSEp2Y0c5ellXeGZjM1ZpYldsemMybHZiaUk2Wm1Gc2MyVjkiLCJmdW5kcyI6W119fX0sInRocmVzaG9sZCI6eyJhYnNvbHV0ZV9wZXJjZW50YWdlIjp7InBlcmNlbnRhZ2UiOnsibWFqb3JpdHkiOnt9fX19LCJ2ZXRvIjpudWxsfQ==",
      "funds": []
    },
    {
      "admin": {
        "core_module": {}
      },
      "code_id": 4053,
      "label": "DAO_Mercury DEX Development_DaoProposalMultiple",
      "msg": "eyJhbGxvd19yZXZvdGluZyI6ZmFsc2UsImNsb3NlX3Byb3Bvc2FsX29uX2V4ZWN1dGlvbl9mYWlsdXJlIjp0cnVlLCJtYXhfdm90aW5nX3BlcmlvZCI6eyJ0aW1lIjoxMjA5NjAwfSwibWluX3ZvdGluZ19wZXJpb2QiOm51bGwsIm9ubHlfbWVtYmVyc19leGVjdXRlIjp0cnVlLCJwcmVfcHJvcG9zZV9pbmZvIjp7Im1vZHVsZV9tYXlfcHJvcG9zZSI6eyJpbmZvIjp7ImFkbWluIjp7ImNvcmVfbW9kdWxlIjp7fX0sImNvZGVfaWQiOjQwNTEsImxhYmVsIjoiREFPX01lcmN1cnkgREVYIERldmVsb3BtZW50X3ByZS1wcm9wb3NlLURhb1Byb3Bvc2FsTXVsdGlwbGUiLCJtc2ciOiJleUprWlhCdmMybDBYMmx1Wm04aU9tNTFiR3dzSW1WNGRHVnVjMmx2YmlJNmUzMHNJbTl3Wlc1ZmNISnZjRzl6WVd4ZmMzVmliV2x6YzJsdmJpSTZabUZzYzJWOSIsImZ1bmRzIjpbXX19fSwidm90aW5nX3N0cmF0ZWd5Ijp7InNpbmdsZV9jaG9pY2UiOnsicXVvcnVtIjp7InBlcmNlbnQiOiIwLjUwIn19fSwidmV0byI6bnVsbH0=",
      "funds": []
    }
  ],
  "voting_module_instantiate_info": {
    "admin": {
      "core_module": {}
    },
    "code_id": 4055,
    "label": "DAO_Mercury DEX Development_MembershipBased",
    "msg": "eyJncm91cF9jb250cmFjdCI6eyJuZXciOnsiY3c0X2dyb3VwX2NvZGVfaWQiOjE5OTIsImluaXRpYWxfbWVtYmVycyI6W3siYWRkciI6Imp1bm8xZ3lqbDI2cm5xcXlrNmN1aDZucXR2eDh0ODg1amdxYWd1c3ZwcXB2dGdheWdjamcyd2pkcXowcnpsZSIsIndlaWdodCI6MX0seyJhZGRyIjoianVubzFzczRjMDk5bHVhaGsyMmE3bXBsa2s3Z2V0c2R6NXdza241cWU1cXZocW15YXdwaDN2dXdxZmF4MzAyIiwid2VpZ2h0IjoxfV19fX0=",
    "funds": []
  }
}' --label 'Mercury DEX dev' --admin juno10d07y265gmmuvt4z0w9aw880jnsr700jvss730 --from nanoX --sign-mode amino-json --fees 153036ujuno --gas auto --gas-adjustment 1.5
```
and the actual result (& signed transaction) was:
```
gas estimate: 2036253
auth_info:
  fee:
    amount:
    - amount: "153036"
      denom: ujuno
    gas_limit: "2036253"
    granter: ""
    payer: ""
  signer_infos: []
  tip: null
body:
  extension_options: []
  memo: ""
  messages:
  - '@type': /cosmwasm.wasm.v1.MsgInstantiateContract
    admin: juno10d07y265gmmuvt4z0w9aw880jnsr700jvss730
    code_id: "4047"
    funds: []
    label: Mercury DEX dev
    msg:
      admin: juno10d07y265gmmuvt4z0w9aw880jnsr700jvss730
      automatically_add_cw20s: true
      automatically_add_cw721s: true
      description: This multisig represents the agreement between its members, Juno
        Development Department (the committer of the Community DEX RFP) and Kintsugi
        (the chosen proposer & supplier), with Juno Governance (the decentralized
        client & competent court in case of disputes) as admin, to develop the "Mercury
        DEX" on Juno. Agreement ratification & updates, payments, verification of
        deliverables & milestones, potential disputes resolution and project management
        in general will happen through proposals on this DAO whenever possible.
      image_url: ipfs://QmTHxWKvEBoTYZxRJpBfDjMjdAYZDouhY6vWncK7MK8d7b
      name: Mercury DEX Development
      proposal_modules_instantiate_info:
      - admin:
          core_module: {}
        code_id: 4054
        funds: []
        label: DAO_Mercury DEX Development_DaoProposalSingle
        msg: eyJhbGxvd19yZXZvdGluZyI6ZmFsc2UsImNsb3NlX3Byb3Bvc2FsX29uX2V4ZWN1dGlvbl9mYWlsdXJlIjp0cnVlLCJtYXhfdm90aW5nX3BlcmlvZCI6eyJ0aW1lIjoxMjA5NjAwfSwibWluX3ZvdGluZ19wZXJpb2QiOm51bGwsIm9ubHlfbWVtYmVyc19leGVjdXRlIjp0cnVlLCJwcmVfcHJvcG9zZV9pbmZvIjp7Im1vZHVsZV9tYXlfcHJvcG9zZSI6eyJpbmZvIjp7ImFkbWluIjp7ImNvcmVfbW9kdWxlIjp7fX0sImNvZGVfaWQiOjQwNTIsImxhYmVsIjoiREFPX01lcmN1cnkgREVYIERldmVsb3BtZW50X3ByZS1wcm9wb3NlX0Rhb1Byb3Bvc2FsU2luZ2xlIiwibXNnIjoiZXlKa1pYQnZjMmwwWDJsdVptOGlPbTUxYkd3c0ltVjRkR1Z1YzJsdmJpSTZlMzBzSW05d1pXNWZjSEp2Y0c5ellXeGZjM1ZpYldsemMybHZiaUk2Wm1Gc2MyVjkiLCJmdW5kcyI6W119fX0sInRocmVzaG9sZCI6eyJhYnNvbHV0ZV9wZXJjZW50YWdlIjp7InBlcmNlbnRhZ2UiOnsibWFqb3JpdHkiOnt9fX19LCJ2ZXRvIjpudWxsfQ==
      - admin:
          core_module: {}
        code_id: 4053
        funds: []
        label: DAO_Mercury DEX Development_DaoProposalMultiple
        msg: eyJhbGxvd19yZXZvdGluZyI6ZmFsc2UsImNsb3NlX3Byb3Bvc2FsX29uX2V4ZWN1dGlvbl9mYWlsdXJlIjp0cnVlLCJtYXhfdm90aW5nX3BlcmlvZCI6eyJ0aW1lIjoxMjA5NjAwfSwibWluX3ZvdGluZ19wZXJpb2QiOm51bGwsIm9ubHlfbWVtYmVyc19leGVjdXRlIjp0cnVlLCJwcmVfcHJvcG9zZV9pbmZvIjp7Im1vZHVsZV9tYXlfcHJvcG9zZSI6eyJpbmZvIjp7ImFkbWluIjp7ImNvcmVfbW9kdWxlIjp7fX0sImNvZGVfaWQiOjQwNTEsImxhYmVsIjoiREFPX01lcmN1cnkgREVYIERldmVsb3BtZW50X3ByZS1wcm9wb3NlLURhb1Byb3Bvc2FsTXVsdGlwbGUiLCJtc2ciOiJleUprWlhCdmMybDBYMmx1Wm04aU9tNTFiR3dzSW1WNGRHVnVjMmx2YmlJNmUzMHNJbTl3Wlc1ZmNISnZjRzl6WVd4ZmMzVmliV2x6YzJsdmJpSTZabUZzYzJWOSIsImZ1bmRzIjpbXX19fSwidm90aW5nX3N0cmF0ZWd5Ijp7InNpbmdsZV9jaG9pY2UiOnsicXVvcnVtIjp7InBlcmNlbnQiOiIwLjUwIn19fSwidmV0byI6bnVsbH0=
      voting_module_instantiate_info:
        admin:
          core_module: {}
        code_id: 4055
        funds: []
        label: DAO_Mercury DEX Development_MembershipBased
        msg: eyJncm91cF9jb250cmFjdCI6eyJuZXciOnsiY3c0X2dyb3VwX2NvZGVfaWQiOjE5OTIsImluaXRpYWxfbWVtYmVycyI6W3siYWRkciI6Imp1bm8xZ3lqbDI2cm5xcXlrNmN1aDZucXR2eDh0ODg1amdxYWd1c3ZwcXB2dGdheWdjamcyd2pkcXowcnpsZSIsIndlaWdodCI6MX0seyJhZGRyIjoianVubzFzczRjMDk5bHVhaGsyMmE3bXBsa2s3Z2V0c2R6NXdza241cWU1cXZocW15YXdwaDN2dXdxZmF4MzAyIiwid2VpZ2h0IjoxfV19fX0=
    sender: juno1qfkgejnv5mfg2hjdldeessvd3887amxuhe553v
  non_critical_extension_options: []
  timeout_height: "0"
signatures: []
confirm transaction before signing and broadcasting [y/N]: y
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: 1434B7D6AB973D33D4997B7D077C12D64F360CE2D145EA810C16B0BB05BF148A
```
which you can check here on the explorer: https://www.mintscan.io/juno/tx/1434B7D6AB973D33D4997B7D077C12D64F360CE2D145EA810C16B0BB05BF148A
Finally, the result is this DAO: https://daodao.zone/dao/juno1c866juyvv0ld7723tw0zpr44k7vrn7qjxhp7rk77nzhptg67xjws48vqqp/home

🙌🏻