Action Provider: Token safety checks before trading (SafeAgent)
维护者通常 1 天内回复
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- typescript
- 领域
- blockchain, security
调研方向
该提案提到了 checkTokenSafety 入口点、REST /token/scan 端点、MCP 集成以及 ERC Token Safety Score 标准,但没有任何 AgentKit 文件或测试。先查看现有的 action providers 和这些集成参考;完成标准和实现范围仍需要维护者达成一致。
由索引模型根据 Issue 内容生成。
描述
Proposal: Token Safety Action Provider
Problem
AgentKit enables AI agents to trade crypto, but has no built-in safety checks. The legal notice states "User's exclusive responsibility" for trading risks. A safety action provider would protect users and reduce liability.
Solution
SafeAgent action provider — agents call checkTokenSafety before executing any swap:
// In an agent's trading flow
const safetyReport = await checkTokenSafety(tokenAddress, 'base');
if (!safetyReport.isSafe) {
return "Token flagged as potentially unsafe: " + safetyReport.flags.join(', ');
}
// Proceed with swap...
Detection Capabilities
- Honeypot detection (DEX swap simulation)
- 17 scam pattern checks
- LP lock verification
- Owner analysis (renounced, privileged functions)
- Proxy/upgrade detection
- 6 chains: Base, Ethereum, Arbitrum, Optimism, Polygon, BSC
Integration Options
- MCP:
https://cryptogenesis.duckdns.org/mcp/sse(compatible with AgentKit MCP examples) - npm:
npm install CryptoGenesisSecurity/erc-token-safety-score - REST:
GET /token/scan?address=0x...&chain=base - On-chain: Oracle on Optimism
0x3B8A6D696f2104A9aC617bB91e6811f489498047
Standard
ERC Token Safety Score — open standard: https://github.com/CryptoGenesisSecurity/erc-token-safety-score
Happy to build the action-provider if Coinbase is interested.
- 主要语言
- TypeScript
- 星标
- 1.3k
- 派生
- 889
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coinbase/agentkit 的其他 Issue
-
SolanaKeypairWalletProvider returns a signature when confirmation reports an execution error可能已有人在做 @snuff12 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
Python: Permit2 approval in CdpSmartWalletActionProvider.swap always reports failure (integer vs string receipt status)可能已有人在做 @0xLittleDream 于 9 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
coinbase/agentkit#1592 · 1 条评论 ·
维护者通常 1 天内回复
-
Moonwell redeem fails on Base Sepolia and uses 18 decimals for cbBTC可能已有人在做 @sebxt 于 12 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
coinbase/agentkit#1578 · 1 条评论 ·
维护者通常 1 天内回复
-
ERC20 transfer reports "Transferred" when the transaction reverts (receipt status ignored)可能已有人在做 @AgenticFinanceGraph 于 21 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
coinbase/agentkit#1558 · 1 条评论 ·
维护者通常 1 天内回复
-
[TypeScript] `ViemWalletProvider` rejects a wallet client from a newer viem than the exactly pinned one (TS2345, `tokens` missing on `Client`)可能已有人在做 @PrabalParihar 于 12 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
coinbase/agentkit#1532 · 5 条评论 ·
维护者通常 1 天内回复
查看 coinbase/agentkit 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
oxidecomputer/skepsis#102 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
voidzero-dev/void#677 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
kunchenguid/gh-axi#247 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
lidge-jun/opencodex#8101 · 2 条评论 ·
维护者通常 1 天内回复