This guide covers how to integrate ChainStream KYT/KYA compliance capabilities into your application, including complete scenarios for CEX deposit/withdrawal risk control, wallet risk alerts, and batch screening.Documentation Index
Fetch the complete documentation index at: https://docs.chainstream.io/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
API Configuration
| Config | Value |
|---|---|
| Base URL | https://api.chainstream.io/ |
| Auth Domain | dex.asia.auth.chainstream.io |
| Audience | https://api.dex.chainstream.io |
KYT Related Scopes
| Scope | Description |
|---|---|
kyt.read | KYT API read permission (query transaction risk) |
kyt.write | KYT API write permission (register transaction analysis) |
Generate Access Token
API Calls
All requests must include the Token in the Header:CEX Deposit Risk Control
Exchange deposit scenarios are the core use case for KYT, requiring risk assessment before funds are credited.Business Flow
Integration Steps
Complete Flow Details
The end-to-end compliance integration flow covers: Detect → Register → Poll → Risk Judgment → Release/Freeze1. Detection Phase
| Trigger Source | Description | Latency |
|---|---|---|
| On-chain Monitoring | Monitor deposit addresses | Block confirmation time |
| User Submission | Withdrawal request | Instant |
| Scheduled Scan | Catch-up mechanism | Configurable |
2. Registration Phase
3. Query Phase
- Polling Method
- Get Detailed Info
4. Judgment Phase
Risk judgment rule configuration:5. Execution Phase
| Action | Trigger Condition | Follow-up |
|---|---|---|
| Release | LOW risk | Normal credit/payment |
| Flag | MEDIUM risk | Credit but continue monitoring |
| Hold | HIGH risk | Enter manual review queue |
| Freeze | SEVERE risk | Freeze + Compliance report |
Complete Service Implementation
CEX Withdrawal Risk Control
Withdrawal scenarios require checking the risk of the destination address when users initiate withdrawals.Business Flow
Implementation Example
Wallet Risk Alerts
In wallet applications, provide risk alerts before users initiate transfers.User Experience Flow
Frontend/Backend Integration
- Frontend Call
- Backend Proxy
Batch Address Screening
Enterprise-level compliance screening for existing addresses.Use Cases
- Regular compliance audits
- New regulatory requirement implementation
- M&A due diligence
- Risk screening
Batch Screening Implementation
Best Practices
Threshold Setting Recommendations
Adjust risk thresholds based on business type:| Business Type | SEVERE Handling | HIGH Handling | MEDIUM Handling |
|---|---|---|---|
| Licensed CEX | Auto freeze | Manual review | Flag monitoring |
| Wallet App | Strong warning | Warning | Notice |
| DeFi Protocol | Reject interaction | Warning | Normal |
| OTC Platform | Reject trade | Additional KYC | Normal |
Audit Log Requirements
Ensure complete audit trail:Next Steps
Authentication Docs
Detailed authentication guide
KYT Concepts
KYT core concepts
KYA Concepts
KYA core concepts
KYT API Reference
KYT API complete documentation

