API-Dokumentation

Echtzeit-WebSocket-API fuer die Ueberwachung von USDT/USDC-Ban-Ereignissen in Tron- und Ethereum-Netzwerken.

v1.0wss://api.usdtbanlist.com/ws

Erste Schritte

Verbinden Sie sich mit dem WebSocket-Endpunkt, um Echtzeit-Ban-Ereignisse zu empfangen und Adressinformationen abzufragen.

WebSocket-Endpunkt
wss://api.usdtbanlist.com/ws?apiKey=YOUR_API_KEY
🔑

API-Schluessel erhalten

Go to your Account → Profile to generate an API key, or use @USDTBanBot on Telegram.

Authentifizierung

Fuegen Sie Ihren API-Schluessel in die Verbindungs-URL ein oder senden Sie eine Auth-Nachricht nach dem Verbinden.

Option 1: URL-Parameter (empfohlen)
wss://api.usdtbanlist.com/ws?apiKey=mk_your_api_key_here
Option 2: Auth-Nachricht
{
  "type": "auth",
  "apiKey": "mk_your_api_key_here"
}
Verbindungsantwort
{
  "type": "connected",
  "clientId": "client_xxx",
  "authenticated": true,
  "tier": "free"
}

Ereignisse

Nach erfolgreicher Verbindung und Authentifizierung erhalten Sie Echtzeit-Ban-Ereignisse.

⚠️

Important

Real-time events are delivered only for addresses that are in your monitoring list. Add addresses to monitor via @USDTBanBot (Wallets section), the Account dashboard, or the Telegram Mini App.

EreignistypBeschreibungStufe
ban_submittedSperre anstehend im MultisigPremium
ban_executedAdresse gesperrt (bestaetigt)Kostenlos
unban_submittedEntsperrung anstehend im MultisigPremium
unban_executedAdresse entsperrtKostenlos
destroy_submittedMittelvernichtung anstehend im MultisigPremium
destroy_executedMittel von gesperrter Adresse vernichtetKostenlos
Ereignisnachrichtenformat
{
  "type": "event",
  "event": {
    "id": "uuid",
    "network": "trx",
    "eventType": "ban_executed",
    "address": "41...",
    "addressBase58": "T...",
    "symbol": "USDT",
    "txHash": "...",
    "blockNumber": 12345678,
    "timestamp": "2024-01-15T12:00:00Z",
    "amount": "1234.56",
    "amountRaw": "1234560000"
  }
}

JSON-RPC-Methoden

Senden Sie JSON-RPC 2.0-Anfragen, um Daten abzufragen und Abonnements zu verwalten.

ping

Verbindungszustand pruefen

Request
{ "jsonrpc": "2.0", "id": 1, "method": "ping" }
Response
{ "jsonrpc": "2.0", "id": 1, "result": "pong" }
getStatus

Aktuellen Verbindungsstatus und Ratenlimit-Info abrufen

Request
{ "jsonrpc": "2.0", "id": 1, "method": "getStatus" }
Response
{
  "jsonrpc": "2.0", "id": 1,
  "result": {
    "tier": "free",
    "subscriptions": ["all"],
    "rateLimit": { "used": 5, "limit": 10, "windowMs": 60000 }
  }
}
subscribe

Ereigniskanaele abonnieren

Request
{
  "jsonrpc": "2.0", "id": 1,
  "method": "subscribe",
  "params": { "channels": ["all"] }
}
Response
{ "jsonrpc": "2.0", "id": 1, "result": { "subscribed": ["all"], "total": 1 } }
unsubscribe

Kanaele abbestellen

Request
{
  "jsonrpc": "2.0", "id": 1,
  "method": "unsubscribe",
  "params": { "channels": ["eth"] }
}
Response
{ "jsonrpc": "2.0", "id": 1, "result": { "unsubscribed": ["eth"], "remaining": 1 } }
checkAddress

Pruefen, ob eine Adresse gesperrt ist

Request
{
  "jsonrpc": "2.0", "id": 1,
  "method": "checkAddress",
  "params": { "address": "TLJpijVuVyjAtKRahhGTAFkpZxfpzHMtWe" }
}
Response
{
  "jsonrpc": "2.0", "id": 1,
  "result": {
    "address": "TLJpijVuVyjAtKRahhGTAFkpZxfpzHMtWe",
    "network": "trx",
    "isBanned": false,
    "usdt_status": "active",
    "usdt_balance": "0.00",
    "tag": { "type": "Exchange", "tag": "Binance" },
    "events": [{ "event_name": "Block", "volume": "1234.56", "symbol": "USDT", "status": "executed" }],
    "walletScore": { "totalScore": 45, "riskLevel": "medium" },
    "connections": { "totalConnections": 3, "categories": ["Blacklist"] }
  }
}
amlCheck$1.50

AML compliance check — risk score, fund sources, transaction analysis

Request
{
  "jsonrpc": "2.0", "id": 1,
  "method": "amlCheck",
  "params": { "address": "TGpnJAXqxmMoPQhaKcPN3jc6nDYbbiyYCz" }
}
Response
{
  "jsonrpc": "2.0", "id": 1,
  "result": {
    "address": "TGpnJAXqxmMoPQhaKcPN3jc6nDYbbiyYCz",
    "network": "tron",
    "riskScore": 75,
    "riskLevel": "high",
    "sources": {
      "byType": [{ "name": "Cross-chain protocol", "share": 85.2 }, { "name": "Exchange", "share": 14.8 }],
      "byName": [{ "name": "Swft Swap", "share": 85.2 }, { "name": "OKX", "share": 14.8 }]
    },
    "details": {
      "directTxCount": 14, "depth": 3, "totalVolume": 225046.97,
      "flags": ["risky", "has_risky_sources"], "riskySourcesCount": 9
    },
    "price": 1.50,
    "balanceAfter": 8.50
  }
}
getAddressInfo

Detaillierte Informationen zu einer Adresse abrufen

Request
{
  "jsonrpc": "2.0", "id": 1,
  "method": "getAddressInfo",
  "params": { "address": "T...", "network": "trx" }
}
Response
{
  "jsonrpc": "2.0", "id": 1,
  "result": {
    "address": "T...", "network": "trx",
    "info": { "label": "Exchange", "firstSeen": "2023-01-15" },
    "cached": true
  }
}

Ratenbegrenzungen

StufeRPC-AnfragenEreignisse
Kostenlos10 / MinuteNur ausgefuehrte
Premium100 / MinuteAlle Ereignisse (anstehend + ausgefuehrt)

Error Codes

Errors follow JSON-RPC 2.0 format with numeric codes.

CodeMessageDescription
-32000Rate limit exceededToo many requests per minute
-32003Authentication requiredMissing or invalid API key
-32010Insufficient balanceNot enough balance for paid method (amlCheck)
-32600Invalid requestMalformed JSON-RPC request
-32601Method not foundUnknown method name
-32602Invalid paramsMissing or invalid parameters
-32603Internal errorServer-side error
Error Response Example
{
  "jsonrpc": "2.0", "id": 1,
  "error": {
    "code": -32010,
    "message": "Insufficient balance",
    "data": { "balance": 0, "price": 1.5 }
  }
}

Beispiele

JavaScript / Node.js
example.js
const WebSocket = require('ws');

const API_KEY = 'mk_your_api_key';
const ws = new WebSocket(`wss://api.usdtbanlist.com/ws?apiKey=${API_KEY}`);

ws.on('open', () => {
  console.log('Connected');
  // Subscribe to TRX events
  ws.send(JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'subscribe', params: { channels: ['trx'] } }));
  // AML check (costs $1.50)
  ws.send(JSON.stringify({ jsonrpc: '2.0', id: 2, method: 'amlCheck', params: { address: 'T...' } }));
});

ws.on('message', (data) => {
  const msg = JSON.parse(data);
  if (msg.type === 'event') console.log('Ban event:', msg.event.eventType, msg.event.addressBase58);
  if (msg.id === 2 && msg.result) console.log('AML Risk:', msg.result.riskScore, msg.result.riskLevel);
});
Python
example.py
import json, websocket

API_KEY = 'mk_your_api_key'

def on_message(ws, message):
    msg = json.loads(message)
    if msg.get('type') == 'event':
        print(f"Ban: {msg['event']['eventType']} - {msg['event'].get('addressBase58', msg['event']['address'])}")
    if msg.get('type') == 'connected' and msg.get('authenticated'):
        ws.send(json.dumps({ 'jsonrpc': '2.0', 'id': 1, 'method': 'amlCheck', 'params': {'address': 'T...'} }))

ws = websocket.WebSocketApp(f"wss://api.usdtbanlist.com/ws?apiKey={API_KEY}", on_message=on_message)
ws.run_forever()

Hilfe benoetigt?

Kontaktieren Sie uns auf Telegram fuer Support oder Funktionswuensche.

Support kontaktieren
API-Dokumentation - USDT Ban List