WritersLogic Verifiable AI Agent Hub Detect Token Trap API

The Detect Token Trap API from WritersLogic Verifiable AI Agent Hub — 1 operation(s) for detect token trap.

GitHub OpenAPI

Operations 1

POST /api/v1/detect-token-trap On-Chain Bytecode & Unverified Token Trap Detector #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/writerslogic-com:writerslogic-com-detect-token-trap-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

writerslogic-com-detect-token-trap-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WritersLogic Verifiable AI Agent Hub Detect Token Trap API
  version: 2.0.0
  description: Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.
  contact:
    name: WritersLogic
    url: https://writerslogic.com/agents
    email: agents@writerslogic.com
servers:
- url: https://agents.writerslogic.com
tags:
- name: Detect Token Trap
paths:
  /api/v1/detect-token-trap:
    post:
      operationId: token_trap_detector
      summary: On-Chain Bytecode & Unverified Token Trap Detector
      description: 'Reads live Base bytecode, proxy slots (EIP-1967/beacon/zeppelinos/EIP-1822/EIP-1167), ERC-20 state, and privileged selectors to score honeypot and rug risk in code: SAFE | CAUTION | HONEYPOT_RUG | INSUFFICIENT_EVIDENCE. Adds honeypot.is buy/sell simulation and GoPlus tax and honeypot flags, disclosed per source, and degrades to a lower-confidence bytecode-only score when they fail.


        Price: 0.25 USDC on Base (x402).'
      x-x402-price-usdc: '0.25'
      x-x402-amount: '250000'
      x-payment-info:
        protocols:
        - x402
        price:
          mode: fixed
          currency: USD
          amount: '0.25'
      x-audience: crypto
      x-sample-url: https://agents.writerslogic.com/api/v1/samples/token-trap-detector
      security:
      - x402: []
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - tokenAddress
              properties:
                tokenAddress:
                  type: string
                  pattern: ^0x[0-9a-fA-F]{40}$
                  description: Token contract address on Base.
                sourceCode:
                  type: string
                  maxLength: 100000
                  description: Optional Solidity source claimed for the token.
            example:
              tokenAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
      responses:
        '200':
          description: Paid result with provenance
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: false
                    required:
                    - honeypotProbability
                    - proxyRisk
                    - maxSafeSlippage
                    - verdict
                    - confidence
                    - risk_factors
                    - mitigating_factors
                    - summary
                    - verdict_floor_applied
                    - decidedBy
                    - evidenceBasis
                    - llmCalls
                    - source_review
                    - oracles
                    - privilegedSelectorsFound
                    - telemetry
                    properties:
                      honeypotProbability:
                        type: integer
                        description: '0-100 rule score: 100 simulated sell failure, 95 tax of 50% or more, lower from taxes and live control.'
                      proxyRisk:
                        type: string
                        enum:
                        - none
                        - low
                        - medium
                        - high
                        - critical
                      maxSafeSlippage:
                        type: number
                        description: Slippage tolerance in percent that covers the worst measured tax plus a 1 point margin, at most 49.
                      verdict:
                        type: string
                        enum:
                        - SAFE
                        - CAUTION
                        - HONEYPOT_RUG
                        - INSUFFICIENT_EVIDENCE
                        description: 'INSUFFICIENT_EVIDENCE: sellability could not be established.'
                      confidence:
                        type: string
                        enum:
                        - low
                        - medium
                        - high
                      risk_factors:
                        type: array
                        items:
                          type: string
                      mitigating_factors:
                        type: array
                        items:
                          type: string
                      summary:
                        type: string
                      verdict_floor_applied:
                        type: boolean
                      decidedBy:
                        type: string
                        enum:
                        - rules:simulation
                        - rules:bytecode_only
                        description: Every score and the verdict are decided by code rules. rules:simulation rests on a honeypot.is buy/sell simulation; rules:bytecode_only on GoPlus flags and on-chain telemetry with lowered confidence.
                      evidenceBasis:
                        type: string
                        enum:
                        - simulation
                        - oracle_flags
                        - bytecode_only
                      llmCalls:
                        type: integer
                        description: 1 only when sourceCode was supplied (fast-tier source review); the model never sets a score or verdict.
                      source_review:
                        type: object
                        description: Model observations about the supplied sourceCode; advisory and never affects the score.
                        properties:
                          status:
                            type: string
                            enum:
                            - not_requested
                            - ok
                            - failed
                          observations:
                            type: array
                            items:
                              type: string
                      oracles:
                        type: object
                        description: 'Third-party readings (taxes in percent), any errors, and per-oracle sources: honeypot.is and GoPlus with request URL, status (ok | no_simulation | no_data | unavailable) and detail.'
                      privilegedSelectorsFound:
                        type: array
                        items:
                          type: object
                          properties:
                            selector:
                              type: string
                            signature:
                              type: string
                            category:
                              type: string
                      telemetry:
                        type: object
                  _provenance:
                    type: object
                    description: C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance
                required:
                - data
                - _provenance
        '400':
          description: Invalid request (no payment consumed)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
        '401':
          description: Invalid X-API-KEY
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
        '402':
          description: Payment required or invalid
          content:
            application/json:
              schema:
                type: object
                description: x402 v2 PaymentRequired (also base64 in the PAYMENT-REQUIRED header)
                properties:
                  x402Version:
                    type: integer
                  error:
                    type: string
                  code:
                    type: string
                  resource:
                    type: object
                  accepts:
                    type: array
                    items:
                      type: object
                  extensions:
                    type: object
        '502':
          description: Upstream failure; the payment is released or not settled
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
      tags:
      - Detect Token Trap
components:
  securitySchemes:
    x402:
      type: apiKey
      in: header
      name: PAYMENT-SIGNATURE
      description: x402 v2 payment payload (base64) sent after a 402 challenge
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY