https://github.com/cryptodev523/blockchain-scan-bot
Telegram bot that scans the on-chain data on blockchain
https://github.com/cryptodev523/blockchain-scan-bot
bitquery blockchain dextools etherscan-api express-js telegram-bot typescript
Last synced: 11 months ago
JSON representation
Telegram bot that scans the on-chain data on blockchain
- Host: GitHub
- URL: https://github.com/cryptodev523/blockchain-scan-bot
- Owner: cryptodev523
- Created: 2024-05-12T22:42:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-27T19:55:39.000Z (over 1 year ago)
- Last Synced: 2025-02-08T15:38:38.086Z (about 1 year ago)
- Topics: bitquery, blockchain, dextools, etherscan-api, express-js, telegram-bot, typescript
- Language: TypeScript
- Homepage:
- Size: 34.2 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blockchain Scanning Telegram Bot
## Description
This is a Express server that runs Telegram bot to interact with users and fetches token information from the EVM blockchain.
## Installation
1. Clone the repository:
```
git clone git@github.com:cryptodev523/blockchain-scan-bot.git
```
2. Install the dependencies:
```
yarn
```
3. Create a `.env` file in the root directory and add your environment variables:
You can refer the `.env.example` file and replace with your variables.
4. Run the server (Local)
```
yarn dev
```
## Endpoints
- `GET /`: Returns a simple message indicating the server is running.
- `POST /bs_webhook`: Receives a webhook from a Telegram bot and responds with token information.
## Connect webhook with the Telegram bot.
- Contact the `BotFather` Telegram Bot and create a new bot.
- Set Webhook url to the Telegram bot with the token.
```
https://api.telegram.org/${BOT_TOKEN}/setWebhook?url=${SERVER_URL}/bs_webhook
```
## Interact with the bot.
- Type the `/bs ${ERC20_TOKEN_ADDRESS}` in the bot.

- Bot will reply in 20 seconds.

