🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

elizaos-plugin-true402

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elizaos-plugin-true402

ElizaOS plugin: pre-trade rug/honeypot safety for Base tokens via true402 — pay-per-call over x402, no API key.

latest
Source
npmnpm
Version
1.2.1
Version published
Weekly downloads
99
-48.44%
Maintainers
1
Weekly downloads
 
Created
Source

elizaos-plugin-true402

npm version   Stable · production-ready — semver-stable public API (v1.0).

A pre-trade rug/honeypot guard for ElizaOS agents. Before your agent buys a Base ERC-20, it asks true402 whether the token can actually be sold — an on-chain buy/sell simulation (state-override), plus liquidity and ownership — and gets back an avoid | caution | ok verdict.

Pay-per-call over x402 (~$0.01 USDC on Base). No account, no API key, no KYC — the agent's wallet is the auth. That's the edge over static-heuristic checkers: a honeypot can lie to a scanner, not to a simulation.

Install

npm i elizaos-plugin-true402

Add it to your character/agent and set the secret (a Base wallet holding a little USDC — gas is sponsored by the facilitator, so it only needs USDC):

{
  "plugins": ["elizaos-plugin-true402"],
  "settings": {
    "secrets": { "TRUE402_PAYER_PRIVATE_KEY": "0x…" }
  }
}

Configuration

  • TRUE402_PAYER_PRIVATE_KEY — Base wallet private key (holds a little USDC) used to pay per check.
  • TRUE402_MAX_PAYMENT_USDC — max USDC auto-paid per call (default 0.10). Fail-closed: an invalid value disables auto-pay entirely rather than becoming unlimited.
  • TRUE402_BASE_URL — override the true402 API base (default https://true402.dev/api).

What it adds

One action, CHECK_TOKEN_SAFETY (similes: RUG_CHECK, HONEYPOT_CHECK, CAN_I_SELL_THIS). It fires whenever a message contains a Base token address, runs token-report over x402, and replies with the verdict + reasons, e.g.:

CHECK_LIQUIDITY_HISTORY — what already happened · ~$0.005

A safety check sees the present. This sees the past: every liquidity removal true402 has observed on the token, with amounts and transaction hashes, plus the other tokens drained in the same transaction — one actor, several pools.

It matters because a live simulation is blind to it: a pool drained last month simulates perfectly today if someone re-seeded it. The reply carries the block range the index actually covers, so "none observed" is never relayed to a user as "safe".

🛑 AVOID — 0x0d17c72e71e0431160fb633893e20b2ae1a395aa
structural safety 0/100
• no tradeable WETH/USDC liquidity — effectively untradeable
(true402: on-chain honeypot simulation + liquidity + ownership)

Wire it into a trading flow by gating buys on verdict.rating (data.verdict is returned on the ActionResult).

Build / publish (from this dir)

npm i
npm run build          # tsup → dist/ (esm + d.ts)
npm publish            # then list it in the ElizaOS plugin registry

Powered by true402.dev · the same check is available standalone (examples/rug-guard) and as an MCP server (true402/mcp-server).

Checking tokens by hand? Send any Base token address to @True402bot on Telegram — same on-chain checks, free, no wallet.

Also available for

MCP (Claude Code / Desktop, Cursor, Hermes) · Hermes Agent · OpenClaw · ElizaOS · LangChain · CrewAI · Vercel AI SDK · Coinbase AgentKit · Virtuals GAME · CLI — same on-chain checks, one install command each: true402.dev/integrations

License

MIT

Keywords

elizaos

FAQs

Package last updated on 08 Aug 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts