# Token Honeypot Detector (Buy/Sell Sim + GoPlus Audit) (`gochujang/token-honeypot-detector`) Actor

On-demand security audit for any ERC20 token. Combines honeypot.is (buy/sell simulation) and GoPlus (owner permissions, mint, blacklist, fees) into a single risk report. Critical pre-purchase check for memecoin traders. $0.02 per token.

- **URL**: https://apify.com/gochujang/token-honeypot-detector.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Token Honeypot Detector

> On-demand security audit for any ERC20 token. **Combines honeypot.is (buy/sell simulation) and GoPlus (owner permissions, fees, blacklist, mint) into a single risk report.** Critical pre-purchase check for memecoin traders. $0.02 per token.

---

### Why this exists

The most common way to lose money on a new memecoin isn't the chart — it's a **honeypot**: a token you can buy but can't sell. Or a 90% sell tax. Or an owner who can mint unlimited supply.

Two free APIs catch most of these:
- **honeypot.is** simulates a buy → sell loop in a forked environment
- **GoPlus Security** decompiles the contract and checks for dozens of red flags

This actor calls both, merges results, and returns one unified risk verdict — so you can decide before sending tx.

---

### What you get per row

| Field | Example | Notes |
|---|---|---|
| `symbol` | `USDT` | |
| `chain` | `ethereum` | |
| `risk_level` | `safe` | safe / low / medium / high / critical |
| `risk_reasons` | `[]` | list of specific flags |
| `is_honeypot_confirmed` | `false` | from honeypot.is simulation |
| `simulation_success` | `true` | did the buy→sell loop succeed |
| `buy_tax_pct` | `0.0` | from GoPlus |
| `sell_tax_pct` | `0.0` | from GoPlus |
| `is_mintable` | `1` | owner can mint more (uint flag) |
| `hidden_owner` | `0` | contract has hidden owner mechanism |
| `can_take_back_ownership` | `0` | owner can resume control after renouncing |
| `owner_change_balance` | `0` | owner can change any wallet's balance |
| `is_blacklisted` | `1` | a blacklist mechanism exists |
| `transfer_pausable` | `1` | owner can pause all transfers |
| `anti_whale_modifiable` | `0` | max wallet / tx can be changed |
| `creator_address` | `0xc6cde...` | |
| `owner_address` | `0xc6cde...` | |
| `holder_count` | `14,427,686` | |

---

### Risk levels

| Level | Trigger |
|---|---|
| ✅ `safe` | No flags raised |
| 🟡 `low` | 1 minor flag (e.g. mintable but renounced) |
| 🟠 `medium` | 2–4 flags or risk level 3–4 from honeypot.is |
| 🔴 `high` | 5+ flags or risk level 5 from honeypot.is |
| ☠️ `critical` | Honeypot confirmed (buy works, sell fails) |

---

### Quick start

#### Audit USDT on Ethereum
```json
{
  "tokenAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
  "chain": "ethereum"
}
````

#### Audit a memecoin on Base

```json
{
  "tokenAddress": "0x...",
  "chain": "base",
  "telegramBotToken": "YOUR_BOT_TOKEN",
  "telegramChatId": "YOUR_CHAT_ID"
}
```

#### Audit a BSC token

```json
{
  "tokenAddress": "0x...",
  "chain": "bsc"
}
```

***

### Supported chains

ethereum, bsc, polygon, arbitrum, optimism, base, avalanche, fantom.

***

### Pricing

**Pay-Per-Event**: `$0.02 per token audited.`

Flat fee covers both honeypot.is and GoPlus API calls. Vs:

- TokenSniffer Pro: $9.99/mo (~$0.33 per scan if you do 30/mo)
- DEXTools Pro: $30/mo
- GoPlus paid API: requires direct contract

If you audit fewer than 15 tokens per month, this actor is cheaper than any paid subscription.

***

### Use cases

1. **Pre-buy check** — Don't ape into a memecoin without running this first
2. **Portfolio audit** — Scan every token in your wallet for new red flags
3. **Telegram bot** — Wire to a trading bot that rejects tokens with `risk_level: critical`
4. **Research** — Compare contract risk profiles across competing memecoins
5. **Listing diligence** — Exchanges use this kind of pre-listing check

***

### Limitations

- **honeypot.is** simulates buys/sells using a forked node, but cannot detect every social-engineering rugpull (e.g. team dumping after a few days). Use [Wallet PnL Analyzer](https://apify.com/gochujang/wallet-pnl-analyzer) on the creator address to check their history.
- **GoPlus** is static analysis — a clean report doesn't guarantee safety, only that no obvious red flags exist.
- Always **also check liquidity** with our [DEX Liquidity Depth Analyzer](https://apify.com/gochujang/dex-liquidity-depth-analyzer).

***

### Related actors (same author)

- [DEX Liquidity Depth Analyzer](https://apify.com/gochujang/dex-liquidity-depth-analyzer) — Check liquidity + slippage
- [Wallet PnL Analyzer](https://apify.com/gochujang/wallet-pnl-analyzer) — Check the creator wallet
- [Smart Money Wallet Tracker](https://apify.com/gochujang/smart-money-tracker) — Did smart money buy this?
- [Solana Memecoin Launch Tracker](https://apify.com/gochujang/solana-memecoin-launchtracker)

***

### Feedback

A short review helps memecoin traders find it: [Leave a review on Apify Store](https://apify.com/gochujang/token-honeypot-detector#reviews)

# Actor input Schema

## `tokenAddress` (type: `string`):

ERC20 contract address (0x...).

## `chain` (type: `string`):

EVM chain.

## `telegramBotToken` (type: `string`):

Telegram bot token for summary notification.

## `telegramChatId` (type: `string`):

Chat ID.

## Actor input object example

```json
{
  "tokenAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
  "chain": "ethereum",
  "telegramChatId": ""
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tokenAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/token-honeypot-detector").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tokenAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7" }

# Run the Actor and wait for it to finish
run = client.actor("gochujang/token-honeypot-detector").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tokenAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
}' |
apify call gochujang/token-honeypot-detector --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=gochujang/token-honeypot-detector",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Token Honeypot Detector (Buy/Sell Sim + GoPlus Audit)",
        "description": "On-demand security audit for any ERC20 token. Combines honeypot.is (buy/sell simulation) and GoPlus (owner permissions, mint, blacklist, fees) into a single risk report. Critical pre-purchase check for memecoin traders. $0.02 per token.",
        "version": "0.1",
        "x-build-id": "dRWCYvoCuAdm7eGT3"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/gochujang~token-honeypot-detector/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-gochujang-token-honeypot-detector",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/gochujang~token-honeypot-detector/runs": {
            "post": {
                "operationId": "runs-sync-gochujang-token-honeypot-detector",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/gochujang~token-honeypot-detector/run-sync": {
            "post": {
                "operationId": "run-sync-gochujang-token-honeypot-detector",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "tokenAddress"
                ],
                "properties": {
                    "tokenAddress": {
                        "title": "Token contract address",
                        "pattern": "^0x[a-fA-F0-9]{40}$",
                        "type": "string",
                        "description": "ERC20 contract address (0x...)."
                    },
                    "chain": {
                        "title": "Chain",
                        "enum": [
                            "ethereum",
                            "bsc",
                            "polygon",
                            "arbitrum",
                            "optimism",
                            "base",
                            "avalanche",
                            "fantom"
                        ],
                        "type": "string",
                        "description": "EVM chain.",
                        "default": "ethereum"
                    },
                    "telegramBotToken": {
                        "title": "Telegram Bot Token",
                        "type": "string",
                        "description": "Telegram bot token for summary notification."
                    },
                    "telegramChatId": {
                        "title": "Telegram Chat ID",
                        "type": "string",
                        "description": "Chat ID.",
                        "default": ""
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
