# ChainK9 Simulate Trade – Token Honeypot & Risk Check

> ChainK9 Simulate Trade – Token Honeypot & Risk Check is a paid API for AI agents from api.chaink9.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Forks a blockchain and executes a real sandbox buy or sell of a token to detect honeypots and trading risks before you commit real funds

## Facts

- Endpoint: GET https://api.chaink9.com/simulate-trade?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chaink9-simulate-trade-token-honeypot-risk-check-9aaa927f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RZXC2NVawRaHdUTblTqcI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability chaink9-simulate-trade-token-honeypot-risk-check-9aaa927f
```

Example prompt: Before I buy, run a ChainK9 sandbox simulation on token 0xABC123...def on BSC — simulate a buy with 1000000000000000 wei from my wallet 0xMYWALLET...456 and tell me if I can also sell it back, so I know if it's a honeypot.

## When to prefer this

Choose this endpoint when you need behavioral honeypot detection — not static code analysis. Unlike tools that scan contract source code for known bad patterns, ChainK9 actually executes the trade in a forked sandbox, so it catches dynamic honeypots, blacklist-based sell blocks, and hidden tax traps that look clean on-chain. Prefer it for pre-trade safety gates in trading bots, DeFi agent workflows, or any situation where losing funds to a scam token is a real risk. Best used on BNB Smart Chain, Ethereum, or Base tokens just before executing a real trade.

## Known failure modes

- Invalid or non-contract token address returns error
- Unsupported chain identifier returns validation error
- Insufficient liquidity for the simulated trade causes failure status in result
- Token has honeypot mechanics — trade simulation returns failed status, which is the intended detection signal
- RPC or fork infrastructure timeout returns error after elapsed time
- Amount specified as zero or malformed integer pattern rejected by schema
- Wallet address format invalid (non-0x or wrong length) returns 400-level error

## How this service works

Token risk checks for BNB Smart Chain, Ethereum and Base, for AI agents and trading bots. ChainK9 forks the chain and really buys and sells a token in a sandbox before you do, so a honeypot is caught by what it does, not by what its code looks like.

## Output

A JSON object containing: trade status (succeeded or failed), quote_out (expected output), amount_out (actual simulated output), quote_shortfall_bps (slippage vs quote in basis points), approval_executed (whether token approval was needed), block number and hash of the fork, chain_id, timestamp, and cost metadata (elapsed ms, RPC calls, fork transactions). This lets the caller determine whether the token is tradeable and whether exit liquidity exists.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token",
      "wallet",
      "direction",
      "amount"
     ],
     "properties": {
      "chain": {
       "enum": [
        "bsc",
        "eth",
        "base",
        "arc"
       ],
       "type": "string",
       "description": "bsc (BNB Smart Chain, the default), eth (Ethereum) or base (Base)"
      },
      "token": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Token"
      },
      "amount": {
       "type": "string",
       "pattern": "^[0-9]{1,78}$",
       "description": "Input base units: native coin wei (BNB or ETH) for buys, token base units for sells"
      },
      "wallet": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Wallet being tested; may differ from payer"
      },
      "direction": {
       "enum": [
        "buy",
        "sell"
       ],
       "type": "string"
      },
      "minimum_out": {
       "type": "string",
       "pattern": "^[0-9]{1,78}$",
       "description": "Optional minimum received in output base units; defaults to zero"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "cost": {
       "type": "object",
       "properties": {
        "elapsed_ms": {
         "type": "integer"
        },
        "local_rpc_calls": {
         "type": "integer"
        },
        "fork_transactions": {
         "type": "integer"
        }
       }
      },
      "data": {
       "type": "object",
       "properties": {
        "status": {
         "type": "string"
        },
        "quote_out": {
         "type": "string"
        },
        "amount_out": {
         "type": "string"
        },
        "approval_executed": {
         "type": "boolean"
        },
        "quote_shortfall_bps": {
         "type": "string"
        }
       }
      },
      "tool"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "cost": {
   "elapsed_ms": 1000,
   "local_rpc_calls": 15,
   "fork_transactions": 1
  },
  "data": {
   "status": "succeeded",
   "quote_out": "100",
   "amount_out": "100",
   "approval_executed": false,
   "quote_shortfall_bps": "0"
  },
  "tool": "simulate-trade",
  "block": 1,
  "limits": [
   "Recorded fork evidence, not a future execution guarantee."
  ],
  "chain_id": 56,
  "block_hash": "0x…",
  "observed_at": "2026-10-18T00:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chaink9-simulate-trade-token-honeypot-risk-check-9aaa927f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chaink9.com](https://www.zero.xyz/host/api.chaink9.com/llms.txt)
