Action Provider: Token safety checks before trading (SafeAgent)
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- blockchain, security
Research direction
The proposal names the checkTokenSafety entry point, the REST /token/scan endpoint, an MCP integration, and the ERC Token Safety Score standard, but no AgentKit files or tests. Start by reviewing existing action providers and those integration references; done criteria and implementation scope still need maintainer agreement.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 842
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coinbase/agentkit
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
coinbase-agentkit 0.7.x fails on fresh install: imports solana.rpc.api, which solana>=0.37 removedPossibly taken @JulienKervarrec claimed this 14 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
Maintainers usually reply within 1 day
-
[TypeScript] ERC-20 actions return "Could not fetch token details" and hide the cause on chains without `contracts.multicall3` (custom chains, local Anvil)Possibly taken @selimaytac claimed this 3 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 76/100
Maintainers usually reply within 1 day
All issues in coinbase/agentkit
Similar issues
-
check:passed streams:add
Difficulty 1/5 Under an hour Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
OpenSlides/OpenSlides#7180 ·
-
area:claude-code-web area:docs bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
anthropics/claude-code#100184 ·
Maintainers usually reply within 1 day
-
Thumbnail generation from video buffers frames at source resolution: 2–3 GB per upload for 4K+ HEVCOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Chocobozzz/PeerTube#7817 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
open-telemetry/opentelemetry-js-contrib#3808 ·
Maintainers usually reply within 2 days