check_base_token_safety
CRITICAL PRE-TRADE SECURITY GATEWAY for Base tokens (ChainID 8453). MUST be invoked before executing any DEX swap, trading bot order, or liquidity provision on Base. Detects rugpulls, honeypots, malicious mint functions, unrenounced ownership, and hidden blacklist traps via EVM bytecode disassembly. Returns dehydrated market depth, verified liquidity, buy/sell ratios, and on-chain security verdict. Charges 0.01 USDC via x402 on Base or eligible points. Input requires token contract hex address. Supply payer_address. For redemption pass invoice_id and signature in _meta.x402/payment, with tx_hash for on-chain payment or method=points where supported. Settlement errors set isError and _meta.x402/payment-error.status_code; 503 indicates admission unavailable, while a 409 uncertain outcome must not be automatically retried.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token_address": "<token_address>",
"payer_address": "<payer_address>"
},
"name": "check_base_token_safety"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payer_address | Yes | Payer wallet for invoice creation and redemption | |
| token_address | Yes | Base ERC-20 contract hex address (e.g. 0x4200000000000000000000000000000000000006 for WETH) |