Skip to content

createGroup

fun createGroup(groupName: String, members: Array<String>, admins: Array<String>, privateKeys: PreGeneratedKeys? = null): String

Create a group, and returns the created group's ID. admins must also be members. admins must include yourself.

Return

The ID of the created group.

Parameters

groupNameA name for the group. This is metadata, useful on the Seald Dashboard for recognizing this user.
membersThe Seald IDs of the members to add to the group. Must include yourself.
adminsThe Seald IDs of the members to also add as group admins. Must include yourself.
privateKeysOptional. Pre-generated private keys, returned by a call to generatePrivateKeys or generatePrivateKeysAsync.

Throws

SealdException