Aidyor X402 Example — AI skill for Claude Code
Example AI agent that scans a crypto token for honeypots and rug pulls before trading, paying $0.05 per scan in USDC via the x402 protocol.
How to install Aidyor X402 Example
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Struja007-alt/aidyor-x402-example and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Aidyor X402 Example does
Example AI agent that scans a crypto token for honeypots and rug pulls before trading, paying $0.05 per scan in USDC via the x402 protocol. No API key or signup. Includes an MCP server for Claude and Cursor. Powered by AIDYOR across 9 chains.
Alternatives in AI
- Iran MCP — 39 MCP servers (488 tools) that give AI agents the Iranian web: Digikala, Torob, Divar, Snappfood, Jabama, MrB 151 ★
- Trading Skills — 17 triggers × 44 algorithms × 3 AI experts — live crypto trading signals for Claude Code, Codex, Cursor & 30+ 113 ★
- ClawRouter Hermes — ClawRouter for Hermes — BlockRun's full LLM catalog incl 22 ★
README
aidyor-x402-example
An AI agent that checks a token for scams **before** it buys, paying $0.05 per scan in USDC over [x402](https://x402.org). No API key, no signup, no account.
[AIDYOR](https://aidyor.app) detects honeypots, rug pulls and scam tokens across 9 chains: Ethereum, BSC, Solana, Polygon, Arbitrum, Base, Avalanche, Fantom and Optimism.
How it works
- Your agent calls
GET https://aidyor.app/api/x402/scan?address=&chain=. - The server answers
402 Payment Requiredwith the price ($0.05, USDC on Base). - The x402 client signs a USDC payment and retries automatically.
- You get the risk report back as JSON.
Failed requests are not charged.
Quick start
Requires Node 20+.
git clone https://github.com/Struja007-alt/aidyor-x402-example
cd aidyor-x402-example
npm install
export EVM_PRIVATE_KEY=0x... # a DEDICATED wallet holding a few dollars of USDC on Base
npx tsx agent.ts 0xTOKEN_ADDRESS base
**Use a throwaway wallet.** Fund it with a few dollars only. Never use a key that holds real funds.
`agent.ts`
The full file is in this repo. The core of it:
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const [address, chain = "base"] = process.argv.slice(2);
if (!address) throw new Error("Usage: npx tsx agent.ts [chain]");
const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
registerExactEvmScheme(client, { signer });
const fetchWithPayment = wrapFetchWithPayment(fetch, client);
const url = `https://aidyor.app/api/x402/scan?address=${address}&chain=${chain}`;
const res = await fetchWithPayment(url);
if (!res.ok) throw new Error(`Scan failed: HTTP ${res.status}`);
console.log(JSON.stringify(await res.json(), null, 2));
The repo version also checks the price first and refuses to pay more t
Related Skills
CryptoGuard
AI agent safety layer for crypto transactions - blocks honeypots, blacklists, and rug pulls before they happen
X402 Payments
OpenClaw Skill: autonomous AI agent payments via x402 protocol (Base/USDC)
Deskcrew Claude Plugin
DeskCrew for Claude Code: helpdesk MCP server (tickets, replies drafted for human approval, knowledge base and
Aotrust Skills
AOTrust — cryptographic proof-of-existence for AI agents: Ed25519 PDRs, $0.01 USDC on Base (x402), NEAR-anchor
Complicheck Skill
Deterministic sub-10ms cosmetic compliance API for AI agents. Resolves INCI/CAS to EU CosIng regulations via x
X402 Agent Search Examples
CyberWareX: web search, web page reading and token safety checks for AI agents, paid per call in USDC with x40
Related Agents
X402 UI Researcher
Research & Context Agent for x402 UI/Dashboard Swarm. Pulls live data, ecosystem metrics, chain support, and d
Crypto Analyst
Perform cryptocurrency market analysis, on-chain analytics, and sentiment analysis. Use PROACTIVELY for market
Joseph
Use this agent when you need trading pipeline management for stocks (Alpaca) and crypto (Polymarket BTC 15m).