Blockchain, PRODUCT DEVELOPMENT

Cenbot

A Telegram bot on Sui

Cenbot 1st image
Client

Confidential

Duration

2 months

Category

Blockchain

Year

2024

Technology

AWS, Mongo Atlas, Infura IPFS, Move - Rust language, Lambda serverless, NodeJS, ReactJS

Introduction

Cenbot is a blockchain technology solution that aims to provide native Telegram bot functionalities on the Sui blockchain.

Cenbot 2nd image

Challenges

Cenbot aims to provide native Telegram bot functionalities on the Sui blockchain. However, several challenges stood in the way of achieving this goal:

– Integration complexity: Interacting seamlessly with the Sui blockchain, including its object-centric data model, Move language smart contracts, and unique transaction processing, presented a significant hurdle. Ensuring efficient and secure communication between the off-chain bot and on-chain assets was crucial.

– Real-time event handling and scalability: Processing real-time events from the Sui blockchain (e.g., transaction updates, smart contract events) and delivering timely notifications to Telegram users at scale required robust event listeners and a highly responsive backend. The fluctuating nature of blockchain activity and user demand necessitated dynamic scaling of infrastructure.

– Data management and persistence: Storing and managing user-specific data, bot configurations, and historical interactions efficiently and reliably was a challenge. This included ensuring data consistency, integrity, and scalability, especially with potential growth in user base and bot functionalities.

Cenbot 3rd image

Solutions

To overcome the challenges, Hola Tech adhered to the best practices. Key components of the solution included:

– Establish robust Sui blockchain connectivity: Implement efficient and secure methods for the Telegram bot to interact with the Sui blockchain, including reading on-chain data, submitting transactions, and listening for relevant events, leveraging Sui’s SDKs and APIs.

– Develop a scalable and responsive backend: Design and implement a serverless backend using AWS Lambda and Node.js capable of handling a high volume of concurrent Telegram bot requests and real-time blockchain event processing, ensuring low latency and high availability.

– Implement an efficient and scalable data store: Utilize Mongo Atlas to store and manage bot data, ensuring high availability, data consistency, and the ability to scale horizontally to accommodate increasing data volumes and user interactions.

Cenbot 4th image

Featured numbers

– Achieved an average response time of under 200ms for bot interactions.

– Handled over 1,000 concurrent active users.

Results

The implemented system successfully met Cenbot’s requirements for performance, security, and functionality. The bot has significantly streamlined interactions with the Sui blockchain through Telegram, attracting over 1,000 unique users. This demonstrates Cenbot’s success in providing a seamless and accessible solution for the burgeoning Sui blockchain ecosystem.

Other Projects