Skip to main content

rooms-x402-tools (Python)

Pay-per-call tools for trading and crypto agents, paid from your own wallet in USDC on Base with x402. No API key, no account, no subscription.

Method What it returns Price
token_verdict Grade (BASED / MID / COOKED / RADIOACTIVE), 0-100 score, one-liner + roast, risk signals (owner powers, mint, pause, blacklist, upgradeable proxy, owner share of supply), on-chain DEX liquidity, shareable card $0.015
fear_greed Crypto Fear & Greed Index by Alternative.me, up to 30 days of history $0.001
prompt_injection_check Screen untrusted text before your agent acts on it $0.004
read_urls 1-10 public pages as clean markdown $0.0015 / URL

Built for loops: every paid call takes a request_key (generated if omitted). Retrying with the same key and input returns the first answer and is never charged twice. A per-call spend cap (default $0.05) refuses any payment request above it before anything is signed. You are never charged for errors.

pip install rooms-x402-tools            # core (x402 client with httpx + EVM signing)
pip install "rooms-x402-tools[langchain]"

Quick start

import os
from rooms_x402_tools import RoomsX402Sync, format_verdict

rooms = RoomsX402Sync(private_key=os.environ["WALLET_PRIVATE_KEY"])
v = rooms.token_verdict("0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed")   # chain="ethereum" for mainnet tokens
print(v["grade"], v["score"], v["metrics"]["liquidity_usd_est"])
print(format_verdict(v))
print(v["_meta"]["payment"])   # settled USDC payment on Base (tx hash)

Async (recommended inside bots):

from rooms_x402_tools import RoomsX402

async with RoomsX402(private_key=key, max_payment_usd=0.02) as rooms:
    for token in new_tokens:
        v = await rooms.token_verdict(token, request_key=f"scan-{token}-{today}")   # safe to retry
        if v["grade"] == "RADIOACTIVE":
            continue
    mood = await rooms.fear_greed(days=7)

LangChain / LangGraph

from rooms_x402_tools.langchain import create_rooms_tools
tools = create_rooms_tools(private_key=os.environ["WALLET_PRIVATE_KEY"])
# token_verdict, crypto_fear_greed, prompt_injection_check, read_urls (async tools)

Notes

  • Payments: x402 exact scheme, USDC on Base (eip155:8453), signed locally with your key (EIP-3009) by the official x402 client. Your key never leaves your process.
  • Token verdicts are built from on-chain facts only. Entertainment and information, not financial advice, not an audit.
  • Pricing and full schemas: https://rooms.aurmada.com/paid
  • A TypeScript version with Coinbase AgentKit, ElizaOS and LangChain.js plug-ins exists too; ask team@aurmada.com.

MIT, Rooms by Aurmada · team@aurmada.com

Metadata

Release files for rooms-x402-tools 0.1.0

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

Source distribution (sdist)

Source distribution for rooms-x402-tools 0.1.0
File Size Uploaded
rooms_x402_tools-0.1.0.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rooms-x402-tools 0.1.0
File Interpreter ABI Platform
rooms_x402_tools-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.2 kB

Release files / rooms_x402_tools-0.1.0.tar.gz

Download URL rooms_x402_tools-0.1.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fd5fc2f64485fa23b151e93b14dbabdf5421bb4da5d48083fa6452a3e68c3231
BLAKE2b-256 checksum
How to use checksums
dafcc6aeb1ce76d3fe88efa61110a6f1bb85d6e2452bc1390e9b0a1ee7dd8d6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / rooms_x402_tools-0.1.0-py3-none-any.whl

Download URL rooms_x402_tools-0.1.0-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f9c3400838271ece8bfb9bc44aeb4dd5e8ea9249a640d54c9bb915a7ba1d4b5
BLAKE2b-256 checksum
How to use checksums
b3a34df6c5f4d8cab4b0e80c9197dd4048d2c24a365dc5add861844aaa21d13c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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