check_honeypot
Detect honeypot tokens on Base mainnet by simulating buy/sell transactions through Uniswap V2 to identify trading restrictions and hidden taxes.
Instructions
Check if a token on Base mainnet is a honeypot by simulating buy and sell via Uniswap V2 router. Returns buy/sell ability and estimated taxes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_address | Yes | Token contract address on Base mainnet |
Implementation Reference
- src/index.ts:674-694 (handler)The 'check_honeypot' tool implementation using the server.tool registration method and the simulateHoneypot helper function.
server.tool( "check_honeypot", "Check if a token on Base mainnet is a honeypot by simulating buy and sell via Uniswap V2 router. Returns buy/sell ability and estimated taxes.", { token_address: z.string().describe("Token contract address on Base mainnet"), }, async ({ token_address }) => { try { const metadata = await getTokenMetadata(token_address); const result = await simulateHoneypot(token_address); return ok({ token: token_address, metadata: metadata ? serializeBigInts(metadata) as Record<string, unknown> : null, honeypotCheck: result, }); } catch (err) { return fail(`check_honeypot failed: ${err instanceof Error ? err.message : String(err)}`); } } );