Skip to main content

x402-money-reactor (Python)

Python client for Money Reactor — an x402 pay-per-call API for AI agents and bots. Live service: https://money-reactor.makar52nn2016.workers.dev

No signup. No API keys. Pay per request in USDC on Base via the x402 protocol (HTTP 402 + EIP-3009). Machine-readable discovery at /openapi.json, /llms.txt and /mcp (MCP server).

Install

pip install x402-money-reactor

Free endpoints (no wallet needed)

from x402_money_reactor import call_free, catalog, paid_endpoints

call_free("/api/health")        # liveness + receiver
call_free("/api/status")        # public payment ledger (recent x402 settlements)
call_free("/api/stats")         # usage counters
call_free("/api/bounties/demo") # free sample of the bounty feed

catalog()         # live endpoint list from /openapi.json
paid_endpoints()  # static price table

Paid endpoints (x402, USDC on Base)

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
GET /api/fear-greed $0.001 crypto Fear & Greed index
POST /api/ai-chat $0.002 LLM chat completion
GET /api/market-pulse?symbols=BTC,ETH $0.003 market snapshot in plain language
GET /api/weather?city=Moscow $0.002 current weather by city
GET /api/url-to-text?url=... $0.003 any web page as clean plain text for LLMs
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/token-verdict?address=0x... $0.01 token safety verdict card
GET /api/verdict?repo=owner/name $0.001 one-line repo safety verdict
GET /api/bounties $0.001 funded bounty feed (launch promo)
GET /api/block-number $0.001 latest Base block height
GET /api/time, /api/uuid $0.001 UTC time / UUID v4
GET /api/dossier $0.05 full research dossier: prices + sentiment + news + chain + AI verdict + AI summary
GET /api/starter-kit $5.00 x402 Starter Kit (docs + code samples)

How payment works

A paid call returns HTTP 402 with an x402 accepts payload. Settle it with any x402-enabled client or EIP-3009 wallet, then repeat the request with the X-PAYMENT header.

from x402_money_reactor import challenge

ch = challenge("/api/crypto-price?symbol=BTC-USD")
print(ch)   # {"accepts": [{"scheme": "exact", "network": "base", "maxAmountRequired": "2000", ...}]}

Full auto-payment with the official SDK:

# pip install x402
from x402 import x402Client  # see x402 docs for wallet setup
# client wraps fetch(): on 402 it signs an EIP-3009 USDC transfer on Base
# and retries the request automatically.

Or drive the settlement yourself with any Base signer — the 402 payload is a standard EIP-3009 transferWithAuthorization to the receiver address in maxAmountRequired (USDC, 6 decimals).

MCP

The service also speaks MCP: point any MCP client at https://money-reactor.makar52nn2016.workers.dev/mcp.

Public ledger

All settlements are visible without a key: GET /api/status → paymentsTotal, recentPayments with on-chain tx hashes.

License

MIT

Metadata

Release files for x402-money-reactor 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for x402-money-reactor 1.2.3
File Size Uploaded Provenance
x402_money_reactor-1.2.3.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for x402-money-reactor 1.2.3
File Interpreter ABI Platform
x402_money_reactor-1.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / x402_money_reactor-1.2.3.tar.gz

Download URL x402_money_reactor-1.2.3.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
003de08de296ec91b01143e9d5286400f4af172c67ee99e5637a927c54b1bfe7
BLAKE2b-256 checksum
How to use checksums
2a49422427cffb08b66dfc8133319cefff5a7f4a0ea4c630e6306553b993e0f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / x402_money_reactor-1.2.3-py3-none-any.whl

Download URL x402_money_reactor-1.2.3-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6bfd3e3ce91e50888a30f0be60207f41c3c4c0f864578a56bd3899d2e2acd66
BLAKE2b-256 checksum
How to use checksums
e6ffff35e2e07b105ccc2b86ec876ced4bfdb590433c6183efc499ea36ed301b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for x402-money-reactor 1.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page