> For the complete documentation index, see [llms.txt](https://docs.blockchainsecurity.asia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockchainsecurity.asia/api-reference/readme/risk-and-intelligence/di-zhi-pi-ci-feng-xian-fen-shu.md). Agents can also search and read this documentation through its [MCP server](https://docs.blockchainsecurity.asia/~gitbook/mcp).

# 地址批次風險分數

一次評估 1–50 顆同鏈地址（`addresses`），或用 `address` 只查一顆，逐地址回傳風險等級（low／moderate／high／severe）、 命中的風險分類、每類一句判定理由，以及往來證據地址。等級由兩部分取較高者： 地址本身是什麼（例如在制裁名單上、被列為駭客地址），以及近兩年直接往來的 金額中有多少來自或流向風險地址（ETH、TRON；BTC 只看地址本身）。

`note` 為「已篩檢來源中未見風險」代表已篩檢的來源中沒有發現，不代表該地址安全。

## POST /v1/address/risk-score

>

```json
{"openapi":"3.1.0","info":{"title":"Blockchain Atlantis API Gateway","version":"0.1.0"},"tags":[{"description":"一次評估 1–50 顆同鏈地址（`addresses`），或用 `address` 只查一顆，逐地址回傳風險等級（low／moderate／high／severe）、\n命中的風險分類、每類一句判定理由，以及往來證據地址。等級由兩部分取較高者：\n地址本身是什麼（例如在制裁名單上、被列為駭客地址），以及近兩年直接往來的\n金額中有多少來自或流向風險地址（ETH、TRON；BTC 只看地址本身）。\n\n`note` 為「已篩檢來源中未見風險」代表已篩檢的來源中沒有發現，不代表該地址安全。","name":"地址批次風險分數"}],"servers":[{"description":"Production","url":"https://api.blockchainsecurity.asia"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"in":"header","name":"X-API-Key","type":"apiKey"}},"schemas":{"RiskScoreRequest":{"description":"地址批次風險篩檢請求。","properties":{"address":{"description":"只查一顆地址時可改用這個欄位。與 `addresses` 擇一。","type":["string","null"]},"addresses":{"description":"要篩檢的地址，1–50 顆，格式須與 `blockchain` 相符。與 `address` 擇一。","items":{"type":"string"},"type":"array"},"blockchain":{"description":"鏈別：`ethereum`、`tron` 或 `bitcoin`（也接受 `eth` / `btc` 別名）。","type":"string"},"detail":{"description":"回應詳細程度：`basic`（預設）只回等級、分類、理由、證據地址；\n`full` 另加分數、自身分／暴露分、收付各自分數、每一筆命中與往來明細、篩檢範圍。","type":["string","null"]}},"required":["blockchain"],"type":"object"},"RiskScoreResult":{"description":"單一地址的風險分數結果。","properties":{"address":{"description":"評估的地址（ETH 一律小寫）。","type":"string"},"categories":{"description":"命中的風險分類。地址本身命中寫類別（例如 `sanctions`）；往來命中加 `exposure:` 前綴\n（例如 `exposure:mixer`）。嚴重的排前面；沒命中是空陣列。","items":{"type":"string"},"type":"array"},"chain":{"description":"鏈別代碼：`eth`、`trx` 或 `btc`。","type":"string"},"cluster":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/RiskScoreCluster","description":"地址所屬實體與分類（分類編號與 `GET /api/kyt/v2/categories` 相同）；查無時為 `null`。"}]},"coverage":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/RiskScoreCoverage","description":"這次篩檢看了哪些範圍。（僅 full）"}]},"evidence":{"description":"往來證據：金額最大的最多 5 個危險對手地址。只有往來命中時才有內容。","items":{"$ref":"#/components/schemas/RiskScoreEvidence"},"type":"array"},"exposure_ratio":{"description":"計分的風險往來金額占總收付的百分比（未乘類別權重）。（僅 full）","format":"double","type":["number","null"]},"exposure_score":{"description":"暴露分：直接往來的風險金額占比換算，最高 90。（僅 full）","format":"int32","minimum":0,"type":["integer","null"]},"exposures":{"description":"每一個計分的風險往來對手（不限 5 筆，金額大的在前）。（僅 full）","items":{"$ref":"#/components/schemas/RiskScoreExposure"},"type":["array","null"]},"inbound_score":{"description":"只看收款方向算出的暴露分。（僅 full）","format":"int32","minimum":0,"type":["integer","null"]},"note":{"description":"沒有任何理由時固定為「已篩檢來源中未見風險」；有理由時不出現。","type":["string","null"]},"outbound_score":{"description":"只看付款方向算出的暴露分。（僅 full）","format":"int32","minimum":0,"type":["integer","null"]},"reasons":{"description":"判定理由，每類一句，供人工覆核與留存紀錄。","items":{"type":"string"},"type":"array"},"risk_level":{"description":"風險等級：`low`（0–30）、`moderate`（31–70）、`high`（71–90）、`severe`（91–100）。\n`severe` 只給「地址本身在官方制裁名單上」；只因往來最高到 `high`。","type":"string"},"score":{"description":"總分 0–100＝`self_score` 與 `exposure_score` 取較高者。（僅 full）","format":"int32","minimum":0,"type":["integer","null"]},"self":{"description":"地址本身每一條命中。（僅 full）","items":{"$ref":"#/components/schemas/RiskScoreSelfHit"},"type":["array","null"]},"self_score":{"description":"自身分：地址本身命中的最高分。（僅 full）","format":"int32","minimum":0,"type":["integer","null"]},"total_usd":{"description":"篩檢範圍內的總收付金額（美元，收＋付）。（僅 full）","format":"double","type":["number","null"]}},"required":["address","chain","risk_level","categories","reasons","evidence"],"type":"object"},"RiskScoreCluster":{"description":"地址所屬實體與分類。","properties":{"category":{"description":"分類名稱。","type":"string"},"category_id":{"description":"分類編號（1–13）。","format":"int32","minimum":0,"type":"integer"},"name":{"description":"實體名稱（例如交易所名稱）；未知時為 `null`。","type":["string","null"]}},"required":["category","category_id"],"type":"object"},"RiskScoreCoverage":{"description":"篩檢範圍（僅 full）。","properties":{"categories_screened":{"description":"篩檢的風險分類。","items":{"type":"string"},"type":"array"},"data_as_of":{"description":"風險名單資料最新時間（台北時間）。","type":"string"},"exposure_hops":{"description":"`1`＝看了直接往來；`0`＝只看地址本身。","format":"int32","minimum":0,"type":"integer"},"max_rows":{"description":"每類交易最多看最近幾筆（只看地址本身時為 null）。","format":"int32","minimum":0,"type":["integer","null"]},"tokens":{"description":"計入的幣種。","items":{"type":"string"},"type":"array"},"window_days":{"description":"往來回看天數（只看地址本身時為 null）。","format":"int32","minimum":0,"type":["integer","null"]}},"required":["exposure_hops","tokens","categories_screened","data_as_of"],"type":"object"},"RiskScoreEvidence":{"description":"一筆往來證據。","properties":{"address":{"description":"危險對手地址。","type":"string"},"category":{"description":"對手的風險分類（例如 `mixer`）。","type":"string"},"direction":{"description":"`in`＝從對手收錢；`out`＝付錢給對手。","type":"string"},"percent":{"description":"這個對手占被查地址總收付的百分比（近兩年、直接往來）。","format":"double","type":"number"}},"required":["address","category","direction","percent"],"type":"object"},"RiskScoreExposure":{"description":"一個風險往來對手（僅 full）。","properties":{"address":{"description":"對手地址。","type":"string"},"category":{"description":"對手的風險分類。","type":"string"},"direction":{"description":"`in`＝從對手收錢；`out`＝付錢給對手。","type":"string"},"first_seen":{"description":"首次往來時間（台北時間）。","type":"string"},"hop":{"description":"跳數，目前固定 1（直接往來）。","format":"int32","minimum":0,"type":"integer"},"last_seen":{"description":"最後往來時間（台北時間）。","type":"string"},"percent":{"description":"占被查地址總收付的百分比。","format":"double","type":"number"},"tx_count":{"description":"往來筆數。","format":"int64","minimum":0,"type":"integer"},"volume_usd":{"description":"往來金額（美元，扣除原路退回後）。","format":"double","type":"number"},"weight":{"description":"這類往來的計分權重（0–1）。","format":"double","type":"number"}},"required":["address","category","direction","hop","volume_usd","tx_count","percent","weight","first_seen","last_seen"],"type":"object"},"RiskScoreSelfHit":{"description":"地址本身的一條命中（僅 full）。","properties":{"category":{"description":"風險分類。","type":"string"},"points":{"description":"這條命中給的分數。","format":"int32","minimum":0,"type":"integer"},"verification":{"description":"依據的性質：`official`（官方名單）、`vendor`（第三方情資）、`curated`（人工整理）、`community`（社群回報）。","type":"string"}},"required":["category","points","verification"],"type":"object"},"Meta":{"description":"回應的中繼資訊。所有欄位都是 `Option`，沒有的就不會出現在 JSON 裡\n（搭配 `skip_serializing_if`），維持輸出乾淨。","properties":{"credit_cost":{"description":"本次請求扣掉的 credit 數量（計費後填入）。","format":"int64","type":["integer","null"]},"credit_remaining":{"description":"本次請求後剩餘的 credit 餘額。","format":"int64","type":["integer","null"]},"pagination":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PaginationMeta","description":"分頁資訊（僅列表型 endpoint 會帶）。"}]},"request_id":{"description":"本次請求的唯一識別碼，與 log / 追蹤系統對應，方便客訴時定位。","type":["string","null"]}},"type":"object"},"PaginationMeta":{"description":"對外的分頁中繼資訊。","properties":{"limit":{"format":"int32","minimum":0,"type":"integer"},"offset":{"format":"int32","minimum":0,"type":"integer"},"total":{"description":"符合條件的總筆數（若下游能提供）。","format":"int64","minimum":0,"type":["integer","null"]}},"required":["limit","offset"],"type":"object"},"ErrorResponse":{"description":"對外錯誤信封。與成功回應的 `{ data, meta }` 信封結構對稱，\n客戶端永遠拿到 `{ \"error\": { \"code\": ..., \"message\": ... } }`。\n\n同時是 OpenAPI 的錯誤 schema：所有非 2xx 回應都是這個形狀，端點文件以\n`body = ErrorResponse` 引用它，客戶端只要寫一次錯誤解析。","properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}},"required":["error"],"type":"object"},"ErrorDetail":{"description":"錯誤本體。`code` 是穩定的機器可讀字串（比 HTTP 狀態碼細緻），\n`message` 是給人看的說明，不保證格式穩定——請用 `code` 做程式判斷。","properties":{"code":{"description":"機器可讀錯誤碼，例如 `bad_request` / `insufficient_credit` / `gateway_timeout`。","type":"string"},"message":{"description":"人可讀的錯誤說明。","type":"string"}},"required":["code","message"],"type":"object"}}},"paths":{"/v1/address/risk-score":{"post":{"operationId":"address.risk_score.v1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskScoreRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"description":"統一成功回應信封。\n\n- `data`：實際的業務資料（泛型 `T`，必須可序列化）。\n- `meta`：與這次請求有關的中繼資訊（request id、分頁、credit 用量等）。","properties":{"data":{"description":"批次風險分數結果。","properties":{"exposure_hops":{"description":"有沒有看往來對象：`1`＝看了直接往來（ETH、TRON）；`0`＝只看地址本身（BTC）。","format":"int32","minimum":0,"type":"integer"},"results":{"description":"逐地址結果，與請求的地址一一對應（重複的地址只回一次）。","items":{"$ref":"#/components/schemas/RiskScoreResult"},"type":"array"},"rule_version":{"description":"評分規則版本。","type":"string"},"screened_at":{"description":"本次評估完成時間（UTC）。","type":"string"}},"required":["screened_at","exposure_hops","rule_version","results"],"type":"object"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"],"type":"object"}}},"description":"評估成功，逐地址回傳風險等級、分類、理由與證據地址"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"請求參數有誤：缺少必填欄位、blockchain 不支援、addresses 為空或超過 50 顆，或任一地址格式與 blockchain 不符"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"缺少或無效的 API key"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"點數餘額不足"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"目前方案不含此端點"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"請求過於頻繁，請依 Retry-After 退避後重試"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"伺服器內部錯誤"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"後端服務暫時無法回應，請稍後重試"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"後端服務暫時過載，請退避後重試"},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"查詢逾時，請稍後重試"}},"summary":"","tags":["地址批次風險分數"]}}}}
```
