3. Real-Time Transaction Risk Alert API

Description

Supports risk screening for recent real-time transactions (within the last 24 hours).

This endpoint is used when you act as the fund recipient and perform a risk screening after an on-chain transaction has occurred, with a focus on the risk associated with the source of funds.

The interface applies the strategies configured in the rule engine.


1. Endpoint URL

GET /openapi/v3/risk/rule/tx/screening

2. Request Parameters

ParameterTypeRequiredDescription
apikeystringtrueAPI key
txstringtrueTransaction hash
chainstringtrueMain chain name
to_addressstringtrueToken receiving address
coinstringtrueToken name
app_idstringtrueApplication ID

3. Response Parameters

{
  "code": 200,
  "message": "success",
  "data": {
    "unique_id": "2541......c245",
    "risk_level": "severe",
    "risk_types": [
      "Blackmail Scam"
    ],
    "risk_tags": [
      "phishing",
      "Blackmail Scam"
    ],
    "risk_code": 4444,
    "risk_detail": {
      "private_data": {
        "hit_private_whitelist": false,
        "hit_private_blacklist": false,
        "private_blacklist_name": "Private blacklist name"
      },
      "hit_blacklist_address": true,
      "tx_blacklist_address": [
        {
          "blacklist_address": "0xE0......D015",
          "risk_types": "Blackmail Scam",
          "risk_tags": [
            "phishing"
          ]
        }
      ],
      "hit_direct_risk_review": false,
      "hit_indirect_risk_review": true,
      "hit_aml_review": true
    }
  }
}

Response Field Description

FieldTypeDescription
codeintBusiness status code. 200 indicates success; other values indicate failure (refer to actual error codes returned).
messagestringResponse status message, e.g., success.
dataobjectResponse data object.

data Field Description

FieldTypeDescription
unique_idstringUnique request ID (used for tracking and troubleshooting).
risk_levelstringRisk level: severe, high, medium, low, none (no risk hit or unknown).
risk_typesstring[]Risk type array (high-level categories), e.g., ["Blackmail Scam"].
risk_tagsstring[]Risk tag array (more granular labels), e.g., ["phishing","Blackmail Scam"].
risk_codeintRisk code: 0 (no risk detected), -1 (not found), 4444 (blacklist hit). For other codes, refer to the Risk Code Specification.
risk_detailobjectDetailed risk information (strategy hits, blacklist matches, etc.).

risk_detail Field Description

FieldTypeDescription
private_dataobjectPrivate list hit information.
hit_blacklist_addressbooleanWhether the transaction includes a blacklist address (from or to).
tx_blacklist_addressarrayList of blacklist addresses matched in the transaction (may contain multiple entries).
hit_direct_risk_reviewbooleanWhether direct risk review rules were triggered.
hit_indirect_risk_reviewbooleanWhether indirect risk review rules were triggered.
hit_aml_reviewbooleanWhether AML review rules were triggered.

private_data Field Description

FieldTypeDescription
hit_private_whitelistbooleanWhether the address hits the private whitelist. true indicates a match.
hit_private_blacklistbooleanWhether the address hits the private blacklist. true indicates a match.
private_blacklist_namestringName of the matched private blacklist (may be empty or not returned if no match).

tx_blacklist_address Element Description

FieldTypeDescription
blacklist_addressstringThe matched blacklist address.
risk_typesstringRisk type associated with the address.
risk_tagsstring[]Risk tag array associated with the address.