Room
Join a room
Input Parameters:
Create a room
Create DM
Invite user to a room
Input Parameters:
Get room information
Input Parameters:
Leave a room
Modify room name
Input Parameters:
Modify room type
Input parameters:
Example
JSON structure
The JSON data has the following structure:
Explanation of Fields
join_rule: This field specifies the rule for joining a room.
token.access: This rule allows only users with the required tokens to enter the room.
token.message: With this rule, all users are permitted to enter the room and view messages. However, only users who meet certain requirements can send messages within the room.
join_params: This section contains additional parameters for controlling room access.
logic: It specifies whether users need to meet just one of the specified requirements (ANY) or all of them (ALL) in order to gain access to the room.
Require: An array of objects specifying the required tokens and their associated criteria for access. You can configure at most five requirements.
required token: Details of the token that is required for access. This includes:
name: The name of the token.
symbol: The symbol of the token.
logo: URL to the logo image of the token.
address: The contract address of the token.
requiredAmount: Specifies the minimum required amount of the token for access.
Last updated