Skip to content

Plugin: SafeAgent — Token safety checks before trading #562

@Aigen-Protocol

Description

@Aigen-Protocol

Plugin Proposal: SafeAgent Token Safety

Problem

AI agents using GOAT to trade on DEXes have no way to check if a token is safe before buying. Honeypots, rug pulls, and scam tokens cause significant losses.

Solution

SafeAgent provides pre-trade safety checks:

const { checkTokenSafety } = require('safeagent-sdk');

// Before any swap
const report = await checkTokenSafety(tokenAddress, 'base');
if (report.safety_score < 60) {
  console.log('Token unsafe:', report.flags);
  return; // Skip trade
}

Features

  • Honeypot detection via DEX swap simulation
  • 17 scam pattern checks on source code
  • LP lock verification
  • 6 EVM chains (Base, Ethereum, Arbitrum, Optimism, Polygon, BSC)
  • Score 0-100 with risk flag bitmask
  • Sub-second response (<1s cached, <1.5s fresh)

Integration

Available as:

  • npm package: npm install CryptoGenesisSecurity/erc-token-safety-score
  • MCP server: SSE at https://cryptogenesis.duckdns.org/mcp/sse
  • REST API: https://cryptogenesis.duckdns.org/token/scan?address=0x...&chain=base
  • On-chain oracle (Optimism): 0x3B8A6D696f2104A9aC617bB91e6811f489498047

Standard

Implements the ERC Token Safety Score — an open standard for token safety on EVM chains.

Comparison

GOAT already has Rugcheck for Solana SPL tokens. SafeAgent covers 6 EVM chains with deeper analysis (honeypot simulation, source code audit, LP lock check).

Happy to build the GOAT plugin if there's interest.

GitHub: https://github.com/CryptoGenesisSecurity/erc-token-safety-score

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions