๐Ÿ”ฅ ChatUs Factory

Burn DEX to deploy chats from the ChatUs factory. Start a blockchain-powered chat room of your own. Choose how much it costs to send a message โ€” token per chat has found a value.

Deployed Chat Contract Address:

Go to the chat: Click here

Admin Controls

๐Ÿ”ง Set or switch the current chat contract address this admin panel interacts with. Make sure it's a valid deployed contract.

๐Ÿ”ฅ Set the token cost required to send a message in the chat. Higher cost can help reduce spam; lower cost encourages participation.

โฑ๏ธ Define the minimum wait time (in seconds) a user must wait before sending another message. Helps prevent flooding.

๐Ÿ“ Set the maximum number of characters allowed per message. Useful for keeping chats concise.

โž• Add a new ERC-20 token that users can burn to send messages. The token must implement burnFrom() and be approved by users.

โž– Remove a token from the list of accepted burnable tokens. At least one token must remain active.

โš™๏ธ The burn cost to send messages automatically adjusts based on chat activity. If message traffic is high, the cost increases to reduce spam. If traffic is low, the cost decreases to encourage participation. These adjustments happen periodically and stay within the minimum and maximum limits you configure.

๐Ÿงจ Permanently deletes all stored chat messages from the contract. Use only in special cases (like resetting chat).

๐Ÿ“Š Shows how many messages are currently stored in the contract (max 1000).

๐Ÿ“ค Exporting Chat Logs

Every time a user sends a message, it is permanently recorded as a blockchain event. Even though only the most recent 1,000 messages are stored on-chain, all past messages can be exported or archived by reading these events.

  • All messages are logged permanently on the blockchain.
  • You can export full chat history at any time.
  • Useful for moderation, analytics, or backups.
  • Compatible with tools like The Graph or custom scripts.

Messages are emitted using the MessageSent event, which includes the sender, message text, timestamp, and message ID.

๐Ÿ”ง Advanced users can use Ethers.js or Web3.js to pull message logs, or set up a backend or subgraph to index and archive all activity.

๐Ÿงน Messages older than this will be pruned. Helps reduce storage and keep the chat fresh.