Service Listening

Use the transactions messages issued under the TOKEN listening service

WEBSOCKET

Protocol: wss

Address: /ws/listen

Query parameters:application/json

Field name Field description Example value Required
client_id client_id 1000001 yes

Message data

Message Example
{
    "type": 1, // Message Type
    "admin_id": 1000001, // client_id
    "data": [
        {
            "cointype": 195, // Chain type
            "tx": "a2d9d8d35306bb380824366494273c872bb40d081ec4ecd730829e4da7ece0ce", // Transaction Hash
            "from": "THxmDgGWJV1hsE9paS6GBzUZJ8NuesCZuy", // Send address
            "to": "TYsj4th5zNRW5EN84vstTn52SRQn9A6YwX", // Receiving address
            "amount": "16000000",
            "decimal": 6,
            "symbol": "USDT", // Token name
            "contract": "TXLAQ63Xg1NAzckPwKHvzw7CSEmLMEqcdj", // Contract address
            "height": 49994880, // Block height
            "timestamp": 1725523140000
        }
    ]
}

Message type description

类型 描述
1 Recharge successful
2 Withdrawal rejected
3 Withdrawal successful