Skip to main content
Glama
lordbasilaiassistant-sudo

base-security-scanner-mcp

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
NameRequiredDescriptionDefault
token_addressYesToken contract address on Base mainnet

Implementation Reference

  • 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)}`);
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lordbasilaiassistant-sudo/base-security-scanner-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server