Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (3 days ago)
- Default Branch: main
- Last Pushed: 2025-02-10T15:09:25.000Z (3 days ago)
- Last Synced: 2025-02-10T15:35:31.749Z (3 days 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: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Multichain Wallets Tracker Bot
A Telegram bot that fetches the latest transaction for wallet addresses across multiple blockchain networks.
## 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