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. Clients that cannot send _meta may pass payment_method ('points' or 'onchain'), invoice_id, signature and (for on-chain) tx_hash as arguments instead. Optional payer_address. Call with only token_address first: the response is a free market preview (not the full report), no wallet or payment needed. Re-call with payer_address to receive the x402 invoice. 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>"
},
"name": "check_base_token_safety"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_hash | No | Base mainnet USDC transfer hash for on-chain settlement. | |
| signature | No | EIP-191 signature over challengeToSign by payer_address. | |
| invoice_id | No | invoiceId from the payment-required response. | |
| payer_address | No | Payer wallet for invoice creation and redemption | |
| token_address | Yes | Base ERC-20 contract hex address (e.g. 0x4200000000000000000000000000000000000006 for WETH) | |
| payment_method | No | Settlement rail. 'points' spends membership points; 'onchain' verifies tx_hash. |