Creates a new group conversation with specified members, encryption settings, and member addition policies.
const conversationName = 'Work Chat'; const isOnlyCreatorAllowedToAddMembers = true; const isEncrypted = true; const initialMembers = ['0xAddress1...', '0xAddress2...', '0xAddress3...']; const txResponse = await chat.createGroupConversation( conversationName, isOnlyCreatorAllowedToAddMembers, isEncrypted, initialMembers, );
A promise that resolves to the response from the
sendTransaction method on the
walletClient provided by the developer on
The desired name for the new group conversation.
Specifies whether only the creator of the group conversation can add new members. If set to true, other members cannot add participants to the group.
Determines if the group conversation should be encrypted. When set to true, all messages within the group will be encrypted.
An array of Ethereum addresses representing the initial members of the group conversation. Ensure that these addresses belong to valid participants you want to include in the group.