GitHunt
C0

c0mm4nd/labelmain

blockchain label database maintainer

LabelMain

๐Ÿท๏ธ Blockchain Address Label Collection Toolkit - A comprehensive Go toolkit for collecting and managing blockchain address labels from multiple data sources

๐Ÿ“– Project Overview

LabelMain is a powerful blockchain data collection toolkit designed to gather and organize blockchain address label information from various reputable platforms. These labels are invaluable for:

  • ๐Ÿ•ต๏ธ Blockchain analysis and investigation
  • ๐Ÿ›ก๏ธ Security risk management and compliance
  • ๐Ÿ“Š Data analysis and research
  • ๐Ÿ” Address attribution identification

โœจ Supported Data Sources

Tool Module Data Source Collection Content Purpose
bitcoinabuse BitcoinAbuse.com Bitcoin malicious address reports Identify scam, ransomware, and other malicious addresses
walletexplorer WalletExplorer.com Wallet service provider address labels Identify exchange and service provider wallets
chainabuse ChainAbuse.com Multi-chain abuse address reports Cross-chain malicious address detection
tronscan Tronscan.org Tron network labels Tron tokens, addresses, and contract information
dappradar DappRadar.com DApp application information Decentralized application data
coincodex CoinCodex.com Cryptocurrency information Token data and price history
defillama DefiLlama.com DeFi protocol information DeFi ecosystem data

๐Ÿ› ๏ธ Requirements

Essential Environment

API Keys (Optional)

Some data sources require API keys for better access limits:

  • DAPPRADAR_API_KEY_1 - DappRadar API key
  • TRONSCAN_API_KEY - Tronscan API key

โš™๏ธ Setup and Installation

1. Clone the Repository

git clone https://github.com/c0mm4nd/labelmain.git
cd labelmain

2. Configure Database Connection

Copy the environment variables example file and edit it:

cp .env.example .env

Edit the .env file and fill in your MongoDB connection string:

MONGO_URI=mongodb+srv://your_username:your_password@your_cluster.mongodb.net/?retryWrites=true&w=majority

# Optional: Other API keys
DAPPRADAR_API_KEY_1=your_DappRadar_API_key
TRONSCAN_API_KEY=your_Tronscan_API_key

3. Install Dependencies

go mod download

๐Ÿš€ Usage

BitcoinAbuse Malicious Address Collection

# Install
go install github.com/c0mm4nd/labelmain/bitcoinabuse@latest

# Initialize run (first time use, collects historical data)
bitcoinabuse -init

# Daily run (collects only new data)
bitcoinabuse

WalletExplorer Wallet Label Collection

# Install
go install github.com/c0mm4nd/labelmain/walletexplorer@latest

# Run (continuously collects all wallet address data)
walletexplorer

Other Tools

# ChainAbuse abuse reports
go install github.com/c0mm4nd/labelmain/chainabuse@latest
chainabuse

# Tronscan data
go install github.com/c0mm4nd/labelmain/tronscan@latest  
tronscan

# DappRadar data
go install github.com/c0mm4nd/labelmain/dappradar@latest
dappradar

# CoinCodex data
go install github.com/c0mm4nd/labelmain/coincodex@latest
coincodex

# DefiLlama data  
go install github.com/c0mm4nd/labelmain/defillama@latest
defillama

Method 2: Local Build and Run

# Build BitcoinAbuse tool
go build -o bitcoinabuse ./bitcoinabuse
./bitcoinabuse -init

# Build WalletExplorer tool  
go build -o walletexplorer ./walletexplorer
./walletexplorer

# Build other tools
go build -o chainabuse ./chainabuse
go build -o tronscan ./tronscan
# ... similar for other tools

๐Ÿ“Š Data Storage Structure

All data is stored in MongoDB's labels database, organized by data source:

labels/
โ”œโ”€โ”€ bitcoinLabels          # Bitcoin address labels
โ”œโ”€โ”€ chainAbuse            # ChainAbuse abuse reports  
โ”œโ”€โ”€ tronTokenLabels       # Tron token labels
โ”œโ”€โ”€ tronAddressLabels     # Tron address labels
โ”œโ”€โ”€ tronContractLabels    # Tron contract labels
โ”œโ”€โ”€ dappradarTronLabels   # DappRadar Tron DApp data
โ”œโ”€โ”€ coincodexAssetLabels  # CoinCodex asset data
โ”œโ”€โ”€ coincodexDappLabels   # CoinCodex DApp data
โ””โ”€โ”€ defillamaLabels       # DefiLlama protocol data

โš ๏ธ Important Notes

Runtime Recommendations

  • ๐Ÿ•’ Long-running operation: These tools are designed as long-term data collection services
  • ๐Ÿ”„ Auto-retry: Built-in error retry and recovery mechanisms, automatically retry on network issues
  • ๐Ÿ’พ Memory management: Automatic memory cleanup when processing large amounts of data
  • โฑ๏ธ Rate limiting: Automatically handles API rate limits to avoid being banned

Resource Consumption

  • ๐Ÿ’ฝ Storage space: Depending on collection scope, may require several GB to tens of GB of storage
  • ๐ŸŒ Network traffic: Continuous network requests, recommended to run in stable network environment
  • โšก Processing time: Initial runs may take several hours to days to collect historical data

Compliance Usage

  • ๐Ÿ“‹ Please comply with the terms of use and rate limits of each data source
  • ๐Ÿค Use only for legitimate research, analysis, and risk management purposes
  • ๐Ÿ”’ Properly manage collected data and pay attention to data security

๐Ÿงช Testing

# Run all tests
go test ./...

# Test specific modules
go test ./bitcoinabuse
go test ./walletexplorer

๐Ÿค Contributing

Issues and Pull Requests are welcome!

๐Ÿ“„ License

This project follows an open source license. Please see the LICENSE file for details.


โญ If this project helps you, please give it a Star!