Quick Start

// 1. Discover available tools (FREE) curl https://x402.rugmunch.io/tools/discovery // 2. Get OpenAI-formatted tool definitions (FREE) curl https://x402.rugmunch.io/tools/openai-tools // 3. Call a tool (requires x402 payment) curl -X POST https://x402.rugmunch.io/tools/rugshield \ -H "Content-Type: application/json" \ -d '{"address": "TOKEN_ADDRESS", "chain": "solana"}' // 4. Pay via x402 facilitator, then retry with payment header // Payment = guaranteed data delivery with SLA and refund fallback

Framework Integrations

const { OpenAI } = require('openai'); const client = new OpenAI({ apiKey: 'your-key' }); // Get tool definitions (FREE) const toolsResp = await fetch('https://x402.rugmunch.io/tools/openai-tools'); const { tools } = await toolsResp.json(); // Call GPT-4o with tools const response = await client.chat.completions.create({ model: "gpt-4o", messages: [ { role: "user", content: "Check if 6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN is safe to buy on Solana" } ], tools: tools, tool_choice: "auto" }); // Execute the tool call if (response.choices[0].message.tool_calls) { const toolCall = response.choices[0].message.tool_calls[0]; const args = JSON.parse(toolCall.function.arguments); const result = await fetch(`https://rugmunch.io/api/v1/x402-tools/${toolCall.function.name}`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(args) }).then(r => r.json()); console.log(result); }
const { Anthropic } = require('@anthropic-ai/sdk'); const anthropic = new Anthropic({ apiKey: 'your-key' }); // Get Claude-formatted tool definitions (FREE) const toolsResp = await fetch('https://x402.rugmunch.io/tools/anthropic-tools'); const { tools } = await toolsResp.json(); // Call Claude with tools const message = await anthropic.messages.create({ model: "claude-sonnet-4-20250514", max_tokens: 1024, messages: [ { role: "user", content: "Is this wallet suspicious? Gix4P9AmwcZRGzr2hCEME5m2QAvY86dBfm8c7e7MpFzv" } ], tools: tools }); // Execute tool calls for (const content of message.content) { if (content.type === "tool_use") { const result = await fetch(`https://rugmunch.io/api/v1/x402-tools/${content.name}`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(content.input) }).then(r => r.json()); console.log(result); } }
const { GoogleGenAI } = require('@google/genai'); const ai = new GoogleGenAI({ apiKey: 'your-key' }); // Get Gemini-formatted function declarations (FREE) const toolsResp = await fetch('https://x402.rugmunch.io/tools/gemini-tools'); const { function_declarations } = await toolsResp.json(); // Call Gemini with function calling const response = await ai.models.generateContent({ model: "gemini-2.5-pro", contents: "Scan 6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN for rug patterns", config: { tools: [{ function_declarations }] } }); // Execute function calls for (const part of response.candidates[0].content.parts) { if (part.functionCall) { const result = await fetch(`https://rugmunch.io/api/v1/x402-tools/${part.functionCall.name}`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(part.functionCall.args) }).then(r => r.json()); console.log(result); } }
from langchain_openai import ChatOpenAI from langchain.agents import create_react_agent from langchain.tools import Tool import requests # Get LangChain tool definitions (FREE) tools_data = requests.get("https://x402.rugmunch.io/tools/langchain-tools").json() tools = tools_data["tools"] # Create custom tool wrappers def call_rmi_tool(tool_name, **kwargs): method = "POST" if tool_name in ["audit", "wallet", "rugshield"] else "GET" resp = requests.request( method, f"https://rugmunch.io/api/v1/x402-tools/{tool_name}", json=kwargs if method == "POST" else None, params=kwargs if method == "GET" else None ) return resp.json() # Create LangChain tools rmi_tools = [ Tool(name=tool["name"], func=lambda **kw, name=tool["name"]: call_rmi_tool(name, **kw), description=tool["description"]) for tool in tools ] # Create ReAct agent llm = ChatOpenAI(model="gpt-4o") agent = create_react_agent(llm, rmi_tools) result = agent.invoke({"input": "Check if token is safe to buy"}) print(result["output"])
# Install MCP SDK pip install mcp # Run the x402 MCP server python -m app.mcp.x402_mcp_server # Configure Claude Desktop (claude_desktop_config.json) { "mcpServers": { "rmi-x402-tools": { "command": "python", "args": ["/srv/rmi/backend/app/mcp/x402_mcp_server.py"], "env": { "RMI_BACKEND_URL": "https://rugmunch.io" } } } } # Programmatic MCP client from mcp.client import ClientSession async with ClientSession("python", ["-m", "app.mcp.x402_mcp_server"]) as session: tools = await session.list_tools() print([t.name for t in tools]) result = await session.call_tool("rug_shield", { "address": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN", "chain": "solana" }) print(result)
TOOL REFERENCE

All 10 x402 Security Tools

Each tool is accessible via REST API, OpenAI function calling, Claude tool use, Gemini function calling, LangChain, and MCP.

Deep Contract Audit $0.50

Security

Full 100-point forensic scan of any token contract. Checks mint authority, freeze authority, liquidity locks, holder distribution, contract verification, hidden functions, tax traps, and honeypot detection.

POST /api/v1/x402-tools/audit
Parameters: address (string), chain (solana|base|ethereum|bsc)

Wallet Profiler $0.75

Intelligence

Full wallet analysis with persona detection, PnL tracking, win rate, hold time, token preferences, cluster membership, and funding source analysis.

POST /api/v1/x402-tools/wallet
Parameters: address (string), chain (solana|base|ethereum|bsc)

Smart Money Tracker $1.00

Alpha

Real-time whale and insider movement tracking. Detects whale buys, insider accumulation, smart money clustering, exchange inflows/outflows, and fresh wallet patterns.

GET /api/v1/x402-tools/smartmoney
Parameters: chain (string), threshold (number), limit (integer)

Launch Radar $0.50

Early Access

Detects new token launches on Pump.fun, Raydium, Orca. Scores each launch for risk. Identifies bundled launches, snipers, and copycat tokens.

GET /api/v1/x402-tools/launch
Parameters: chain (string), window_minutes (integer)

Rug Shield $0.25

Protection

Quick pre-buy safety check. Binary safe/unsafe verdict in under 2 seconds. Checks honeypot, rug patterns, liquidity ratio, holder concentration.

POST /api/v1/x402-tools/rugshield
Parameters: address (string), chain (string)

Social Sentiment Radar $0.50

Social

Analyzes social signals across 71 monitored X accounts, Telegram channels, and RSS feeds. Detects coordinated shilling, bot-driven hype, genuine community growth.

POST /api/v1/x402-tools/sentiment
Parameters: token (string), chain (string)

Cluster Detection $1.00

Forensics

Maps wallet clusters and funding chains. Identifies related wallets through shared funding, transaction patterns, and timing. Detects sybil attacks.

POST /api/v1/x402-tools/cluster
Parameters: address (string), chain (string), depth (integer)

Insider Tracker $1.50

Alpha

Tracks developer and team wallet activity across all their tokens. Detects dev selling, insider accumulation, team token movements to exchanges.

POST /api/v1/x402-tools/insider
Parameters: creator_address (string), chain (string)

URL Scam Detector $0.10

Security

Analyzes any URL for scam indicators without blacklists. Domain age, brand impersonation, suspicious TLDs, phishing patterns.

POST /api/v1/x402-tools/urlcheck
Parameters: url (string)

Token Pulse $0.25

Market

Comprehensive token health dashboard. Liquidity health, holder concentration, volume trends, price momentum, risk trajectory.

POST /api/v1/x402-tools/pulse
Parameters: address (string), chain (string)
x402 PAYMENT

x402 Payment Flow

All tools charge via the x402 HTTP 402 payment protocol. Payment is required for tool execution. Free discovery endpoints are available for all frameworks.

1
Request Tool
Call tool endpoint without payment
2
Get 402 Response
Receive payment requirements
3
Pay via x402
USDC on Base or Solana
4
Get Results
Data delivered with SLA guarantee
// Step 1: Request tool without payment curl -X POST https://x402.rugmunch.io/tools/rugshield \ -H "Content-Type: application/json" \ -d '{"address": "TOKEN_ADDR", "chain": "solana"}' // Step 2: Receive 402 response { "error": "Payment required", "payment_required": { "scheme": "x402", "network": "base", "amount": "250000", "address": "0x1E3AC01d0fdb976179790BDD02823196A92705C9", "asset": "USDC" } } // Step 3: Pay via facilitator, retry with payment header curl -X POST https://x402.rugmunch.io/tools/rugshield \ -H "Content-Type: application/json" \ -H "x402-Payment: <payment_token>" \ -d '{"address": "TOKEN_ADDR", "chain": "solana"}' // Step 4: Receive your data { "verdict": "SAFE", "risk_score": 0, "flags": [], "guarantee": "Data delivered or auto-refund via x402 receipt" }