https://github.com/fd2013/multichain_wallets_tracker
This Python script sets up a Telegram bot that allows users to fetch the latest transaction for a given wallet address on various blockchain networks (Ethereum, Binance Smart Chain, Polygon, Avalanche, Arbitrum, Optimism, and Fantom). The bot uses the respective blockchain explorers' APIs to retrieve the transaction data.
https://github.com/fd2013/multichain_wallets_tracker
api avalanche binance-smart-chain blockchain-tool blockchain-wallet bot botfather ethereum fantom multichain networks optimism polygon python3 telegram-bot tracker transactions wallets
Last synced: 17 days ago
JSON representation
This Python script sets up a Telegram bot that allows users to fetch the latest transaction for a given wallet address on various blockchain networks (Ethereum, Binance Smart Chain, Polygon, Avalanche, Arbitrum, Optimism, and Fantom). The bot uses the respective blockchain explorers' APIs to retrieve the transaction data.
- Host: GitHub
- URL: https://github.com/fd2013/multichain_wallets_tracker
- Owner: fd2013
- License: mit
- Created: 2025-02-10T14:36:05.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-02-22T00:40:18.000Z (about 2 months ago)
- Last Synced: 2025-02-22T01:26:25.237Z (about 2 months ago)
- Topics: api, avalanche, binance-smart-chain, blockchain-tool, blockchain-wallet, bot, botfather, ethereum, fantom, multichain, networks, optimism, polygon, python3, telegram-bot, tracker, transactions, wallets
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Multichain Wallets Tracker Bot
This Python script sets up a Telegram bot that allows users to fetch the latest transaction for a given wallet address on various blockchain networks (Ethereum, Binance Smart Chain, Polygon, Avalanche, Arbitrum, Optimism, and Fantom). The bot uses the respective blockchain explorers' APIs to retrieve the transaction data.
## Supported Networks
- Ethereum
- Binance Smart Chain
- Polygon
- Avalanche
- Arbitrum
- Optimism
- Fantom## Prerequisites
- Python 3.7+
- Telegram Bot Token
- API keys from blockchain explorers## Getting a Telegram Bot Token
1. Open Telegram and search for @BotFather
2. Send `/newbot` command
3. Follow prompts to set:
- Bot name (display name)
- Bot username (must end in 'bot')
4. BotFather will provide a token like: `123456789:ABCdefGHIjklmNOPQrstUVwxyz`
5. Keep this token secure - it provides full control of your bot## Installation
```bash
pip install python-telegram-bot aiohttp
```## Configuration
1. Create a Telegram bot via BotFather
2. Obtain API keys from blockchain explorers:
- [Etherscan](https://etherscan.io/apis)
- [BSCScan](https://bscscan.com/apis)
- [PolygonScan](https://polygonscan.com/apis)
- [Snowtrace](https://snowtrace.io/apis)
- [Arbiscan](https://arbiscan.io/apis)
- [Optimistic Etherscan](https://optimistic.etherscan.io/apis)
- [FTMScan](https://ftmscan.com/apis)
3. Update API keys in the script## Usage
1. Start the bot:
```bash
python telegram-wallets-tracker-bot.py
```2. Telegram Commands:
` - Get latest transaction
- `/start` - Welcome message
- `/txExample:
```
/tx ethereum 0x742d35Cc6634C0532925a3b844Bc454e4438f44e
```## Error Handling
- Invalid network names
- Invalid addresses
- API rate limits
- Network connection issues## License
MIT