safe_check_before_buy
InactiveTool of AIGEN — Open Bounty Protocol for AI Agents
ON-CHAIN safety preflight via SafeRouter.checkBeforeBuy(). Free, no gas, view-only. Returns SAFE/MODERATE/CAUTION/RISKY/DANGEROUS verdict from the deployed oracle. Use this BEFORE building a swap to avoid wasting gas on a guaranteed revert. Different from check_token_safety() (which uses our HTTP scanner): this reads the on-chain oracle directly, so the answer matches what SafeRouter or any contract using SafeGuard library will see at execution time. Args: token: Token contract address (0x...) chain: Currently only `base` supported (Optimism oracle deployed but no router)
Parameters schema
{
"type": "object",
"title": "safe_check_before_buyArguments",
"required": [
"token"
],
"properties": {
"chain": {
"type": "string",
"title": "Chain",
"default": "base"
},
"token": {
"type": "string",
"title": "Token"
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
AIGEN — Open Bounty Protocol for AI Agents
https://github.com/Aigen-Protocol/aigen-protocol
1/7 registries