BA
Security · x402 · early usage

Pre-trade sellability / honeypot check for Base tokens: simulates a buy, a wallet trans…

Pre-trade sellability / honeypot check for Base tokens: simulates a buy, a wallet transfer and a sell of a Base ERC-20 on live Base state (Uniswap v2/v3 or Aerodrome; nothing is signed or spent). Returns buy/sell/transfer success, measured tax %, revert reaso…

by api.x402risk.com · discovered, not yet claimed by its owner · updated 2026-09-28

30d calls1
30d payers1
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Pre-trade sellability / honeypot check for Base tokens: simulates a buy, a wallet transfer and a sell of a Base ERC-20 on live Base state (Uniswap v2/v3 or Aerodrome; nothing is signed or spent). Returns buy/sell/transfer success, measured tax %, revert reason and a simulation-driven verdict (ok/caution/avoid/unknown); owner/holder flags go in risk_flags. $0.02 USDC. Invalid input is not charged. Informational, not financial advice.

Tags: base · token · honeypot · sellability · tax · bazaar

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-09-28
Input example from Bazaar metadata
{
  "amount_usd": 100,
  "token": "0x532f27101965dd16442E59d40670FaF5eBB142E4"
}
Output example
{
  "block_number": 35000000,
  "buy_ok": true,
  "buy_tax_pct": 0,
  "cached": false,
  "chain": "base",
  "chain_id": 8453,
  "disclaimer": "Informational, not financial advice. Simulation of a hypothetical buy/transfer/sell against public Base state at the stated block; it is not a guarantee that a real trade will succeed or be taxed the same way (token owners can change rules at any time). Heuristic flags can be wrong; do your own research.",
  "gas": {
    "buy": 150000,
    "sell": 133537,
    "transfer": 40000
  },
  "pool": "0xBA3F945812a83471d709BCe9C3CA699A19FB46f7",
  "product": "pretrade-check",
  "reasons": [
    "buy, transfer and sell simulated successfully with < 1% tax"
  ],
  "revert_reason": null,
  "risk_flags": [
    {
      "flag": "HAS_ACTIVE_OWNER",
      "note": "contract has an active (non-renounced) owner"
    }
  ],
  "route": "uniswap_v3:fee_10000 WETH",
  "schema_version": "1.0",
  "sell_ok": true,
  "sell_tax_pct": 0,
  "status": "ok",
  "token": "0x532f27101965dd16442E59d40670FaF5eBB142E4",
  "token_check_risk_level": "low",
  "transfer_ok": true,
  "transfer_tax_pct": 0,
  "verdict": "ok"
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/36558.json for the price and payment options.
  3. Pay. Call GET https://api.x402risk.com/v1/pretrade-check. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.02 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
1 calls · 1 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.020x8F9C3f91628497E2A72D6740022D46f87A9eB417180s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x8F9C3f91628497E2A72D6740022D46f87A9eB417",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 180
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "properties": {
        "block_number": {
          "type": [
            "integer",
            "null"
          ]
        },
        "buy_ok": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "buy_tax_pct": {
          "type": [
            "number",
            "null"
          ]
        },
        "cached": {
          "type": "boolean"
        },
        "chain": {
          "type": "string"
        },
        "disclaimer": {
          "type": "string"
        },
        "errors": {
          "type": "array"
        },
        "gas": {
          "type": [
            "object",
            "null"
          ]
        },
        "pool": {
          "type": [
            "string",
            "null"
          ]
        },
        "product": {
          "type": "string"
        },
        "reasons": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "revert_reason": {
          "type": [
            "object",
            "null"
          ]
        },
        "risk_flags": {
          "description": "Token-check owner/holder/contract flags; informational, do not affect verdict",
          "items": {
            "properties": {
              "flag": {
                "type": "string"
              },
              "note": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "route": {
          "type": [
            "string",
            "null"
          ]
        },
        "schema_version": {
          "type": "string"
        },
        "sell_ok": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "sell_tax_pct": {
          "type": [
            "number",
            "null"
          ]
        },
        "sellability": {
          "type": "object"
        },
        "sources": {
          "type": "array"
        },
        "status": {
          "enum": [
            "ok",
            "partial",
            "error"
          ],
          "type": "string"
        },
        "token": {
          "type": "string"
        },
        "token_check": {
          "type": "object"
        },
        "token_check_risk_level": {
          "type": [
            "string",
            "null"
          ]
        },
        "transfer_ok": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "transfer_tax_pct": {
          "type": [
            "number",
            "null"
          ]
        },
        "verdict": {
          "description": "Driven only by the simulation: sellability, buy/sell/transfer taxes, drained/no liquidity",
          "enum": [
            "ok",
            "caution",
            "avoid",
            "unknown"
          ],
          "type": "string"
        }
      },
      "required": [
        "schema_version",
        "token",
        "status",
        "verdict",
        "reasons",
        "risk_flags",
        "disclaimer"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "block_number": 0,
    "buy_ok": true,
    "buy_tax_pct": 0,
    "cached": true,
    "chain": "string",
    "disclaimer": "string",
    "errors": [
      "value"
    ],
    "gas": {},
    "pool": "string",
    "product": "string",
    "reasons": [
      "string"
    ],
    "revert_reason": {},
    "risk_flags": [
      {
        "flag": "string",
        "note": "string"
      }
    ],
    "route": "string",
    "schema_version": "string",
    "sell_ok": true,
    "sell_tax_pct": 0,
    "sellability": {},
    "sources": [
      "value"
    ],
    "status": "ok",
    "token": "string",
    "token_check": {},
    "token_check_risk_level": "string",
    "transfer_ok": true,
    "transfer_tax_pct": 0,
    "verdict": "ok"
  },
  "type": "string"
}

Examples

curl
curl "https://api.x402risk.com/v1/pretrade-check"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.x402risk.com/v1/pretrade-check");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://api.x402risk.com/v1/pretrade-check")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
api.x402risk.com
Endpoint
https://api.x402risk.com/v1/pretrade-check
Machine-readable
/resources/36558.json