Struja007-alt

Aidyor X402 Example — AI skill for Claude Code

AI community

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

  1. Your agent calls GET https://aidyor.app/api/x402/scan?address=&chain=.
  2. The server answers 402 Payment Required with the price ($0.05, USDC on Base).
  3. The x402 client signs a USDC payment and retries automatically.
  4. 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