This Telegram Bot retrieves and displays transaction information on the Celestia blockchain using the Celenium API. The bot provides the namespace, time and associated blob details of a transaction when prompted with the /tx
command in a Telegram chat.
This Telegram Bot leverages the Celenium API to:
- Display some details of a transaction on the Celestia blockchain.
- Provide this information in response to the
/tx
command within a Telegram chat.
The bot offers a simple way to retrieve transaction data and can be extended to add additional functionality.
Before setting up the project, ensure you have the following:
- Node.js installed
- npm, yarn or another package manager
- Telegram Bot API Token (you can get this by creating a bot via BotFather)
- Clone the repository and navigate into the project directory using
cd celenium-bot
. - Install dependencies: run
npm install
. - Create an
.env
file using the example and add your Telegram API token. - Run the bot: execute
node index.js
to start the bot. - Start using the bot: Open Telegram, start a chat with your bot, and use the
/tx
command to retrieve transaction information on Celestia.
The bot responds to the /tx
command by fetching the transaction status, type, and associated blobs from Celestia using the Celenium API. This information is then displayed in the Telegram chat.
This bot can be extended to add more functionality, such as monitoring additional endpoints or providing more detailed transaction metrics.