地址标签
---
layout:
title:
visible: true
description:
visible: true
tableOfContents:
visible: true
outline:
visible: true
pagination:
visible: false
---
# 地址标签
## 获取单个地址的标签
返回目标地址的标签信息
<mark style="color:blue;">`GET`</mark> `https://aml.blocksec.com/api/aml/v2/address`
#### 路径参数
| 名称 | 类型 | 描述 |
| ----------------------------------------- | ------ | ----------------------------------------------------------------------- |
| chain<mark style="color:red;">\*</mark> | String | blockchain名称,请参见[支持的chains](../getting-started/supported-chains.md) |
| address<mark style="color:red;">\*</mark> | String | 目标地址 |
#### 请求头
| 名称 | 类型 | 描述 |
| ----------------------------------------- | ------ | ---------- |
| API-KEY<mark style="color:red;">\*</mark> | String | 您的API密钥 |
<div data-gb-custom-block data-tag="tabs">
<div data-gb-custom-block data-tag="tab" data-title='请求'>
<div data-gb-custom-block data-tag="code" data-overflow='wrap'>
```powershell
curl --location 'https://aml.blocksec.com/api/aml/v2/address/eth/0x5b5082214d62585d686850ab8d9e3f6b6a5c58ff' \
--header 'API-KEY: $ApiKey'
示例响应
{
"code": 200,
"data": [
{
"address": "0x5b5082214d62585d686850ab8d9e3f6b6a5c58ff",
"is_address_valid": true,
"chain": "ETH",
"is_contract": false,
"labels": {
"entity_info": [
{
"entity_type": "first",
"entity": "HUOBI",
"category": "CEX",
"confidence": 8
}
],
"property_info": [
{
"address_property": "DEPOSIT ADDRESS",
"confidence": 8
},
{
"address_property": "EXPLOIT",
"category": "ATTACKER",
"confidence": 9
}
],
"name_tag": "Ronin Bridge Exploiter 27",
"others": [
{
"label": "RONIN BRIDGE EXPLOIT",
"confidence": 9
}
]
},
"risk": 5
}
]
}
msg
: String
如果code
不是200,则此字段表示详细的错误信息。
获取多个地址的标签
GET
https://aml.blocksec.com/api/aml/v2/addresses
路径参数
目标地址,使用“, ”连接成一个字符串。单个请求中的地址数量不应超过100。
请求头
示例请求
curl --location 'https://aml.blocksec.com/api/aml/v2/addresses/eth/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48,0x0191e884bf8e21e138e161da520f94d4bbc79c1c' \
--header 'API-KEY: $ApiKey'
示例响应
{
"code": 200,
"data": [
{
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"is_address_valid": true,
"chain": "ETH",
"is_contract": true,
"labels": {
"entity_info": [
{
"entity_type": "first",
"entity": "CENTRE",
"confidence": 9
}
],
"contract_info": {
"contract_name": "FiatTokenProxy",
"token_name": "USD Coin (USDC)"
},
"name_tag": "Circle: USDC Token",
"others": [
{
"label": "CIRCLE",
"confidence": 9
},
{
"label": "STABLECOIN",
"confidence": 9
},
{
"label": "TOKEN CONTRACT",
"confidence": 9
},
{
"label": "USDC",
"confidence": 9
}
]
},
"risk": 2
},
{
"address": "0x8672867cb976c723d600d810b419d439133fca7a",
"is_address_valid": true,
"chain": "ETH",
"is_contract": true,
"labels": {
"entity_info": [
{
"entity_type": "first",
"entity": "BITTREX",
"category": "CEX",
"confidence": 9
}
],
"property_info": [
{
"address_property": "DEPOSIT ADDRESS",
"confidence": 9
}
],
"contract_info": {
"contract_name": "UserWallet"
}
},
"risk": 1
}
]
}
响应格式与单地址查询返回的结果一致。
msg
: String
如果code
不是200,则此字段表示详细的错误信息。
响应数据参数
标签字段的子字段
地址所属的chain。适用于compatible_chain_labels
‘first’表示实体, ‘second’表示二级实体
```