Page cover image

Create a group

In this tutorial we will create a group with three members called the Aquifer Committee and a 3rd party admin.

Creating a group of 3 members with a 3rd party admin

  • Create 4 accounts

qwoynd keys add group-1(2)(3)
qwoynd keys add group-admin

Creating a group is done with the following command:

qwoynd tx group create-group [admin] [metadata] [members-json-file]

[metadata] in our case will be the name of the committee [members-json-file] includes the member accounts of the group, weight and metadata for each member.

  • Create the members.json file

//members.json
{
  "members": [
    {
      "address": "qwoyn1er6u37jt060j0pugw42em5cvxlf8pngupr7seg",
      "weight": "1",
      "metadata": "Secretary"
    },
    {
      "address": "qwoyn1w2t5txykgc5h2tkr6me5agcyekxp2ctdy8r964",
      "weight": "1",
      "metadata": "Treasurer"
    },
    {
      "address": "qwoyn16nm5jk9wfpr4qalemk23ady02p3a2kmu0cvy94",
      "weight": "1",
      "metadata": "President"
    }
  ]
}

Last updated