Skip to main content
Glama
Rug-Munch-Media-LLC

rugmunch-solana

README.md
# Rug Munch Intelligence — x402 Gateway (Solana)

> **Pay-per-call crypto security on Solana via USDC (PayAI). Part of [Rug Munch Intelligence](https://rugmunch.io) — The Bloomberg Terminal of Shitcoins.**

---

## What This Is

This Cloudflare Worker is the **x402 payment gateway** for Rug Munch Intelligence on Solana. It enforces per-call USDC micropayments via the PayAI facilitator protocol before forwarding requests to the RMI backend.

This is infrastructure — not a standalone product. All **221 tools** live in the [RMI backend](https://github.com/Rug-Munch-Media-LLC/rugmuncher-backend). This worker handles payment verification on Solana.

## Architecture

```
Client (MCP / OpenAI / LangChain / HTTP / App)
  │
  ▼
x402 Gateway (this worker)  ◄── checks USDC payment or trial balance
  │
  ▼
RMI Backend (221 tools)      ◄── actual intelligence processing
```

- **MCP clients** (Claude Desktop, Cursor) connect via the [rug-munch-intelligence-mcp](https://github.com/Rug-Munch-Media-LLC/rug-munch-intelligence-mcp) package
- **OpenAI / Anthropic / Gemini / LangChain** — fetch tool schemas directly, call via HTTP
- **HTTP clients** (curl, bots, apps) call this gateway directly
- **Web app** at [rugmunch.io](https://rugmunch.io) — full dashboard with token scanner, wallet profiler, RugCharts, RugMaps
- **Telegram bot** [@rugmunchbot](https://t.me/rugmunchbot) — scan tokens and wallets on the go

Same backend, same tools, same payment — regardless of how you access it.

## Payment Verification

**Solana** — verified via PayAI facilitator protocol. Fast, federated verification of on-chain USDC transfers.

| Chain   | Symbol | Verification Method         |
|---------|--------|-----------------------------|
| Solana  | SOL    | PayAI facilitator protocol  |

## Trial Access

| Verification Level | Free Requests per Tool |
|---------------------|------------------------|
| Fingerprint only    | 1                      |
| Wallet verified     | 3                      |

## Endpoints

- **Gateway**: `https://x402-sol.rugmuncher.workers.dev`
- **Tools**: `POST /api/v1/x402-tools/{tool_name}`
- **OpenAI format**: `GET /api/v1/x402-tools/openai-tools`
- **Anthropic format**: `GET /api/v1/x402-tools/anthropic-tools`
- **LangChain format**: `GET /api/v1/x402-tools/langchain-tools`
- **Gemini format**: `GET /api/v1/x402-tools/gemini-tools`
- **Catalog**: `GET /api/v1/x402/tools-catalog`
- **Discovery**: `GET /.well-known/x402`

## Payment Address (Solana)

```
Gix4P9AmwcZRGzr2hCEME5m2QAvY86dBfm8c7e7MpFzv
```

## Part of Rug Munch Intelligence

This gateway is one piece of the full platform:

- **Web Terminal** — [rugmunch.io](https://rugmunch.io)
- **MCP Server** — [rug-munch-intelligence-mcp](https://github.com/Rug-Munch-Media-LLC/rug-munch-intelligence-mcp) (221 tools for AI agents)
- **Token Scanner** — [github.com/Rug-Munch-Media-LLC/token-scanner](https://github.com/Rug-Munch-Media-LLC/token-scanner)
- **Wallet Scanner** — [github.com/Rug-Munch-Media-LLC/wallet-scanner](https://github.com/Rug-Munch-Media-LLC/wallet-scanner)
- **RugCharts** — [github.com/Rug-Munch-Media-LLC/rugcharts](https://github.com/Rug-Munch-Media-LLC/rugcharts)
- **x402 Gateway (EVM)** — [github.com/Rug-Munch-Media-LLC/x402-gateway-base](https://github.com/Rug-Munch-Media-LLC/x402-gateway-base)
- **Telegram Bot** — [@rugmunchbot](https://t.me/rugmunchbot)

## License

Proprietary — Copyright 2026 Rug Munch Media LLC. All rights reserved.