nansen-smart-alerts
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSmart Alerts
智能警报
CRUD management for smart alerts. Alerts are internal-only (requires Nansen internal API key).
智能警报的CRUD管理。警报仅对内开放(需要Nansen内部API密钥)。
Quick Reference
快速参考
bash
nansen alerts list --table
nansen alerts create --name <name> --type <type> --chains <chains> --telegram <chatId>
nansen alerts update <id> [--name <name>] [--chains <chains>]
nansen alerts toggle <id> --enabled|--disabled
nansen alerts delete <id>bash
nansen alerts list --table
nansen alerts create --name <name> --type <type> --chains <chains> --telegram <chatId>
nansen alerts update <id> [--name <name>] [--chains <chains>]
nansen alerts toggle <id> --enabled|--disabled
nansen alerts delete <id>Options Reference
选项参考
| Flag | Create | Update | Toggle | Delete |
|---|---|---|---|---|
| required | required | required | |
| required | optional | ||
| required | required with type-specific flags | ||
| recommended | optional | ||
| chat ID | optional | ||
| webhook URL | optional | ||
| webhook URL | optional | ||
| optional | optional | ||
| flag | flag | ||
| flag | flag | flag | |
| optional (JSON escape hatch) | optional |
| 标识 | 创建 | 更新 | 启用/禁用 | 删除 |
|---|---|---|---|---|
| 必填 | 必填 | 必填 | |
| 必填 | 可选 | ||
| 必填 | (搭配类型专属标识时)必填 | ||
| 推荐使用 | 可选 | ||
| 聊天ID | 可选 | ||
| Webhook URL | 可选 | ||
| Webhook URL | 可选 | ||
| 可选 | 可选 | ||
| 标识 | 标识 | ||
| 标识 | 标识 | 标识 | |
| 可选(JSON逃逸出口) | 可选 |
Alert Types
警报类型
1. sm-token-flows
— Smart Money Token Flows
sm-token-flows1. sm-token-flows
— 聪明钱代币流向
sm-token-flowsTrack aggregated SM inflow/outflow. At least one flow threshold should be specified.
Type-specific flags:
- ,
--inflow-1h-min/max,--inflow-1d-min/max(USD thresholds)--inflow-7d-min/max - ,
--outflow-1h-min/max,--outflow-1d-min/max--outflow-7d-min/max - ,
--netflow-1h-min/max,--netflow-1d-min/max--netflow-7d-min/max - (repeatable) — include specific tokens
--token <address:chain> - (repeatable)
--exclude-token <address:chain> - /
--token-sector <name>(repeatable)--exclude-token-sector <name> --token-age-max <days>- ,
--market-cap-min/max <usd>--fdv-min/max <usd>
Example:
bash
nansen alerts create \
--name 'SM ETH Inflow >5M' \
--type sm-token-flows \
--chains ethereum \
--telegram 5238612255 \
--inflow-1h-min 5000000 \
--token 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:ethereum追踪聚合后的聪明钱流入/流出数据。至少需要指定一个流向阈值。
类型专属标识:
- 、
--inflow-1h-min/max、--inflow-1d-min/max(美元阈值)--inflow-7d-min/max - 、
--outflow-1h-min/max、--outflow-1d-min/max--outflow-7d-min/max - 、
--netflow-1h-min/max、--netflow-1d-min/max--netflow-7d-min/max - (可重复使用)——追踪特定代币
--token <address:chain> - (可重复使用)
--exclude-token <address:chain> - /
--token-sector <name>(可重复使用)--exclude-token-sector <name> --token-age-max <days>- 、
--market-cap-min/max <usd>--fdv-min/max <usd>
示例:
bash
nansen alerts create \
--name 'SM ETH Inflow >5M' \
--type sm-token-flows \
--chains ethereum \
--telegram 5238612255 \
--inflow-1h-min 5000000 \
--token 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:ethereum2. common-token-transfer
— Token Transfer Events
common-token-transfer2. common-token-transfer
— 代币转账事件
common-token-transferTrack real-time transfer events matching specified criteria.
Subject types: , , ,
Format: (e.g. )
addressentitylabelcustom-label--subject type:value--subject label:"Centralized Exchange"Type-specific flags:
- (comma-separated)
--events <buy,sell,swap,send,receive> - ,
--usd-min/max <usd>--token-amount-min/max <n> - (repeatable) — addresses/entities/labels to track
--subject <type:value> - (repeatable) — requires
--counterparty <type:value>--subject - /
--token <address:chain>(repeatable)--exclude-token <address:chain> - /
--token-sector <name>(repeatable)--exclude-token-sector <name> - ,
--token-age-min/max <days>--market-cap-min/max <usd> - /
--exclude-from <type:value>(repeatable)--exclude-to <type:value>
Event direction notes:
- for counterparties =
buyfor subjectssell - for counterparties =
sendfor subjectsreceive - To track "any address sending to CEX": use with
--subject, notreceivewith--counterpartysend
Example:
bash
nansen alerts create \
--name 'Large USDC Transfers' \
--type common-token-transfer \
--chains ethereum \
--telegram 123456789 \
--events send,receive \
--usd-min 1000000 \
--token 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48:ethereum追踪符合指定条件的实时转账事件。
主体类型: 、、、
格式:(例如 )
addressentitylabelcustom-label--subject type:value--subject label:"Centralized Exchange"类型专属标识:
- (逗号分隔)
--events <buy,sell,swap,send,receive> - 、
--usd-min/max <usd>--token-amount-min/max <n> - (可重复使用)——要追踪的地址/实体/标签
--subject <type:value> - (可重复使用)——需要搭配
--counterparty <type:value>使用--subject - /
--token <address:chain>(可重复使用)--exclude-token <address:chain> - /
--token-sector <name>(可重复使用)--exclude-token-sector <name> - 、
--token-age-min/max <days>--market-cap-min/max <usd> - /
--exclude-from <type:value>(可重复使用)--exclude-to <type:value>
事件方向说明:
- 对手方的对应主体的
buysell - 对手方的对应主体的
sendreceive - 要追踪“任意地址向中心化交易所转账”:使用搭配的
receive,而非搭配--subject的send--counterparty
示例:
bash
nansen alerts create \
--name 'Large USDC Transfers' \
--type common-token-transfer \
--chains ethereum \
--telegram 123456789 \
--events send,receive \
--usd-min 1000000 \
--token 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48:ethereum3. smart-contract-call
— Smart Contract Interactions
smart-contract-call3. smart-contract-call
— 智能合约交互
smart-contract-callTrack contract calls matching specified criteria.
Type-specific flags:
--usd-min/max <usd>- (repeatable, e.g.
--signature-hash <hash>for0x095ea7b3)approve - /
--caller <type:value>(repeatable)--exclude-caller <type:value> - /
--contract <type:value>(repeatable)--exclude-contract <type:value>
Example:
bash
nansen alerts create \
--name 'Uniswap V3 Large Swaps' \
--type smart-contract-call \
--chains ethereum \
--telegram 123456789 \
--usd-min 1000000 \
--contract entity:"Uniswap V3"追踪符合指定条件的合约调用。
类型专属标识:
--usd-min/max <usd>- (可重复使用,例如
--signature-hash <hash>对应0x095ea7b3方法)approve - /
--caller <type:value>(可重复使用)--exclude-caller <type:value> - /
--contract <type:value>(可重复使用)--exclude-contract <type:value>
示例:
bash
nansen alerts create \
--name 'Uniswap V3 Large Swaps' \
--type smart-contract-call \
--chains ethereum \
--telegram 123456789 \
--usd-min 1000000 \
--contract entity:"Uniswap V3"Notes
注意事项
- Chain aliases: Hyperliquid = , BSC =
hyperevm.bnb - Multiple channels can be combined:
--telegram 123 --slack https://... - merges raw JSON on top of named flags (escape hatch for fields without named flags).
--data '<json>' - Alert endpoints are internal-only. Non-internal users receive 404.
- Use single quotes for names with or special characters:
$--name 'SM >$1M'
- 链别名:Hyperliquid = ,BSC =
hyperevm。bnb - 可组合使用多个通知渠道:
--telegram 123 --slack https://... - 会将原始JSON合并到已命名标识的配置之上(作为无对应命名标识字段的逃逸方案)。
--data '<json>' - 警报端点仅对内开放。非内部用户访问会收到404错误。
- 名称包含或特殊字符时,请使用单引号包裹:
$--name 'SM >$1M'