JUHE API Marketplace

Build a Telegram Monitor n8n Workflow: Tron Wallet Blacklist Checker

2 min read

Introduction

A Telegram Tron Wallet Blacklist Checker using n8n lets you automate the validation of wallet addresses for security, avoiding blocked USDT contracts before transacting. The workflow connects your Telegram bot with JuheAPI to check wallet status instantly.

Prerequisites

Tools & Accounts

  • n8n instance (cloud or self-hosted)
  • Telegram bot token from BotFather
  • JuheAPI account + API key

Knowledge

  • Basic n8n workflows
  • Understanding API requests

Step 1: Create Your Telegram Bot

  1. Open Telegram and search for BotFather
  2. Use /newbot to create a bot
  3. Save the bot token securely

Step 2: Configure n8n Workflow

Webhook Node

  • Trigger Type: POST
  • Path: /telegram-tron-monitor
  • Respond with HTTP 200

Optional: Telegram Trigger Node

  • Config: use polling if webhook can't be set

Step 3: Parse Telegram Payload

  • Insert Function node after webhook:
return [{
  chat_id: $json.message.chat.id,
  wallet: $json.message.text.trim()
}];
  • Validate Tron address format (prefix T, len=34)

Step 4: Connect to JuheAPI

  • Add HTTP Request node
  • Method: GET
  • URL: https://api.juheapi.com/blacklist/tron
  • Query params: address={{$json["wallet"]}}, apikey=YOUR_KEY

Example config:

{
  "url": "https://api.juheapi.com/blacklist/tron",
  "method": "GET",
  "qs": {
    "address": "={{$json[\"wallet\"]}}",
    "apikey": "YOUR_JUHEAPI_KEY"
  }
}

Step 5: Process Response

  • Add Function node to format output:
const status = $json.result?.status || 'unknown';
return [{
  chat_id: $json.chat_id,
  wallet: $json.wallet,
  status
}];

Step 6: Send Reply to Telegram

  • Add Telegram node to send message:
{
  "chat_id": "={{$json[\"chat_id\"]}}",
  "text": "Wallet {{ $json[\"wallet\"] }} is {{ $json[\"status\"] }}."
}

Step 7: Testing

  • Send a valid Tron address to your bot
  • Check the reply for blacklist status

Step 8: Deployment

  • Save and activate the workflow
  • Keep bot token and API key secret via n8n credentials

Troubleshooting

  • Webhook not firing: check Telegram webhook set via setWebhook
  • API key error: verify in JuheAPI dashboard
  • Address not found: test with known blacklisted address

Security

  • Use secure storage for keys
  • Prevent spam with message rate limiting
  • Monitor failed checks for patterns

Advanced Enhancements

  • Batch check addresses
  • Add multi-contract checks
  • Build alert channels for flagged wallets

References