Manage groups & channels
Create new group or channel:
NOTE: Replace CONTRACT_NAME to use one of our smart-contracts and ACCOUNT_ID to your sender account. Include 0.25 NEAR to create new group or channel.
Request parameters:
title (required): Group/channel title.
image (required): IFPS hash for logo. Send empty string if you don't want set logo.
text (required): Text description for your group or channel.
url (required): External URL for your community.
group_type (required): Value represent your community type. Should be one of follows: "Private", "Public", "Channel".
members (required): Array of community members (NEAR Addresses). For Channel it should be empty array (users should join channel).
edit_members (optional): Set to false for disable members edit in chatme interface. Default: true.
moderator (optional): NEAR Account that have the same privileges as group/channel owner.
Response: Group ID (U32).
Edit group or channel:
NOTE: Replace CONTRACT_NAME to use one of our smart-contracts and ACCOUNT_ID to your sender account.
Request parameters:
id (required): Group/channel id that you edit.
title (required): group or channel title.
image (required): IFPS hash for logo. Send empty string if you don't want set logo.
text (required): Text description for your group or channel.
url (required): External URL for your community.
Group Type can't be changed. To edit community members use methods described below.
Add new members
Remove members
Remove group or channel
Danger - action can't be reverted!
Join Public Group
Join Public Channel
Leave Group
Leave Channel
Last updated