Money Reactor
README.md
# x402-money-reactor
**Money Reactor** — a pay-per-call API for AI agents and bots. No signup, no API keys, no rate-limit dance: the payment **is** the auth. Every call is settled on-chain in **USDC on Base** via the [x402](https://www.x402.org) protocol (HTTP 402 + EIP-3009 `transferWithAuthorization`).
🔗 Live service: **https://money-reactor.makar52nn2016.workers.dev**
Machine-readable discovery (point your agent straight at these):
| Surface | URL |
|---|---|
| OpenAPI 3.1 | https://money-reactor.makar52nn2016.workers.dev/openapi.json |
| llms.txt | https://money-reactor.makar52nn2016.workers.dev/llms.txt |
| Agent card | https://makar-reactor.srht.site/ |
| MCP server | https://money-reactor.makar52nn2016.workers.dev/mcp |
| Docs mirror (GitHub Pages) | https://makar52nn-crypto.github.io/x402-money-reactor/ |
| MCP registry | io.github.makar52nn-crypto/x402-money-reactor (official registry) |
| Listed in x402dev.com | https://www.x402dev.com |
## Install
```bash
pip install x402-money-reactor # Python SDK
npm install x402-money-reactor # Node.js SDK
```
Source lives in [`sdk/python/`](sdk/python/) and [`sdk/node/`](sdk/node/).
## The verdict ladder — the core premium track
Three tiers of token-safety intelligence for trading agents, wallets and DeFi bots. One settlement mechanics, three confidence levels — pay only for the confidence you need:
| Tier | Price | Use it when |
|------|-------|-------------|
| `GET /api/verdict` · `/api/honeypot` | **$0.001** | triage a whole token list (100 tokens ≈ $0.10) |
| `GET /api/token-verdict` | **$0.01** | machine verdict GREEN/MID/YELLOW/RED **before** your agent signs a swap |
| `GET /api/dossier` | **$0.05** | large position: prices + sentiment + news + chain state + AI verdict + AI summary in one JSON |
```python
from x402_money_reactor import token_verdict_challenge, dossier_challenge
print(token_verdict_challenge("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"))
# -> {"accepts": [{"scheme": "exact", "network": "eip155:8453",
# "maxAmountRequired": "10000", ...}]}
```
## Full catalog (17 paid endpoints, $0.001 – $5.00)
| Endpoint | Price | What you get |
|---|---|---|
| `GET /api/crypto-price?symbol=BTC-USD` | $0.001 | live spot price |
| `GET /api/usd-price?assets=btc,eth` | $0.001 | multi-asset USD snapshot (≤25 pairs/call) |
| `GET /api/fear-greed` | $0.001 | crypto Fear & Greed index (+10d history) |
| `GET /api/crypto-news` | $0.001 | news feed |
| `GET /api/verdict?repo=owner/name` | $0.001 | one-line repo safety verdict |
| `GET /api/honeypot?repo=owner/name` | $0.001 | GitHub repo trust score |
| `GET /api/erc20-balance?address=…&token=…` | $0.001 | ERC20 balance on Base |
| `GET /api/block-number` | $0.001 | latest Base block height |
| `GET /api/time` · `GET /api/uuid` | $0.001 | UTC time / UUID v4 |
| `GET /api/bounties` | $0.001 | funded bounty feed |
| `GET /api/weather?city=Moscow` | $0.002 | current weather by city |
| `POST /api/ai-chat` | $0.002 | LLM chat completion |
| `GET /api/market-pulse?symbols=BTC,ETH` | $0.003 | prices + Fear & Greed + block height in plain language |
| `GET /api/url-to-text?url=…` | $0.003 | any web page as clean plain text for LLMs |
| `GET /api/token-verdict?address=0x…` | $0.01 | token safety verdict card |
| `GET /api/dossier` | $0.05 | full research dossier |
| `GET /api/starter-kit` | $5.00 | x402 Starter Kit (docs + code samples) |
## How a paid call works
1. Call any paid endpoint **without** a key → you get **HTTP 402** with an x402 `accepts` payload.
2. Your x402 client (or EIP-3009 wallet) signs a USDC `transferWithAuthorization` on Base.
3. Repeat the request with the `X-PAYMENT` header → **200 OK** with the data.
```python
from x402_money_reactor import call_free, catalog, paid_endpoints
call_free("/api/status") # public payment ledger — every settlement visible
catalog() # live endpoint list from /openapi.json
paid_endpoints() # static price table
```
```javascript
const { challenge, catalog, paidEndpoints } = require("x402-money-reactor");
console.log(challenge("/api/token-verdict?address=0x…"));
```
Full auto-payment with the official x402 SDK:
```python
# pip install x402
from x402 import x402Client # on 402 it signs EIP-3009 USDC on Base and retries automatically
```
Or drive the settlement yourself with any Base signer — the 402 payload is a standard EIP-3009 `transferWithAuthorization` to the `payTo` address (USDC, 6 decimals).
## MCP
The service speaks MCP natively: point any MCP client at
`https://money-reactor.makar52nn2016.workers.dev/mcp`.
## Public ledger — verify everything
No key needed: `GET https://money-reactor.makar52nn2016.workers.dev/api/status`
returns `paymentsTotal` and `recentPayments` with on-chain tx hashes. Every
payment that ever settled is public.
## Mirrors & articles
- Agent card + docs mirror: https://makar-reactor.srht.site/
- Codeberg mirror: https://makar52nn2016.codeberg.page/
- Articles: [Pay-per-call API for AI agents (EN)](https://telegra.ph/Pay-per-call-API-for-AI-agents-crypto-price-AI-chat-weather-url-to-text--x402-USDC-on-Base-10-19) · [verdict→dossier research ladder (EN)](https://telegra.ph/Screen-for-001-commit-for-005-the-verdict-to-dossier-research-ladder-for-trading-agents-x402-USDC-on-Base-10-19) · [RU-версия](https://telegra.ph/API-s-oplatoj-za-vyzov-dlya-botov-x402-USDC-na-Base--bez-registracii-i-API-klyuchej-10-19)
## License
MIT
This server cannot be deployed
Maintenance
ActivityNo data
ResponsivenessNo issues