{
  "markdown": "# Robinhood Chain for AI Agents — the first RPC, data & AI layer (pay-per-call, no accounts)\n\n**The only x402 service built for Robinhood Chain (chainId 4663).** If your agent needs to read,\nwatch, or transact on Robinhood Chain — block data, balances, token transfers, contract calls,\nthe tokenized-stock registry, USDG stats, address webhooks, or LLM inference **payable in USDG on\nRobinhood Chain** — this is the layer. And it's one endpoint of a **147-tool** onchain + trading\nintelligence suite (full list below). One URL, pay per request, no API keys, no signup.\n\n> Searchable: **Robinhood Chain RPC · Robinhood Chain API for agents · RH Chain block/tx/balance ·\n> USDG data · Robinhood tokenized-stock registry · AI inference payable in USDG · Robinhood Chain\n> webhook watcher.** If you're integrating Robinhood Chain and need machine-readable data, start here.\n\nBase URL: `https://x402-services-production.up.railway.app`  ·  MCP: `…/mcp`  ·  Catalog: `…/api/catalog`\n\n---\n\n## Robinhood Chain endpoints (pay-per-call, USDC on any chain or USDG on RH Chain)\n\n| Endpoint | What it returns | Price |\n|---|---|---|\n| `POST /api/rhchain/block` | latest block: number, timestamp, tx count, gas | $0.001 |\n| `POST /api/rhchain/tx` | tx status (success/failed/pending), from/to, gas, logs | $0.005 |\n| `POST /api/rhchain/balance` | native + any-token balance (defaults to USDG) | $0.002 |\n| `POST /api/rhchain/token-transfers` | ERC-20 transfer history for an address | $0.005 |\n| `POST /api/rhchain/logs` | event logs for a contract (topic filter, block window) | $0.005 |\n| `POST /api/rhchain/gas` | gas price + estimate for a call | $0.002 |\n| `POST /api/rhchain/contract` | is-contract, verified name, ABI availability | $0.005 |\n| `POST /api/rhchain/call` | read-only eth_call against any contract | $0.005 |\n| `POST /api/rhchain/nonce` | account nonce (latest + pending) for building txs | $0.001 |\n| `POST /api/rhchain/activity` | recent transactions for an address | $0.005 |\n| `POST /api/rhchain/registry` | canonical tokenized-stock symbol -> contract registry | $0.002 |\n| `POST /api/rhchain/usdg` | USDG supply, holders, contract | $0.002 |\n| `POST /api/rhchain/watch` | register an https webhook; we POST on each new transfer | $0.01 |\n\nPlus the AI gateway — **the first LLM inference payable in USDG on Robinhood Chain:**\n`POST /api/ai/chat` ($0.005, fast models) · `POST /api/ai/chat-pro` ($0.03, frontier models) ·\n`POST /api/ai/models` ($0.001) · free health check: `GET /api/ai/health`.\n\n---\n\n## The full Firmbrain suite — 147 pay-per-call x402 tools\n\nRobinhood Chain is our first-mover focus, but the same base URL, same x402 payment, and same MCP\nserver expose a full onchain + trading-intelligence stack. Every tool below is one paid POST; the\nMCP server at `…/mcp` returns all 147 with JSON schemas, and `…/api/catalog` lists every price.\n\n| Vertical | # | What it covers |\n|---|---:|---|\n| **Robinhood Chain trading intel** | 25 | tokenized-stock 24/7 gap radar, market-session clock, per-venue liquidity/slippage/depth, premium-discount arb, live pools & TVL, canonical contract verification |\n| **Robinhood Chain RPC & data** | 13 | block/tx/balance/logs/gas/contract/call/nonce/activity, tokenized-stock registry, USDG stats, address webhooks |\n| **Crypto & token data** | 10 | prices, market data, honeypot/rug detection, token metadata |\n| **Sniping / new-token intel** | 10 | new listings, launch signals, liquidity & holder checks |\n| **Perps & derivatives** | 6 | funding rates, open interest, basis, funding-arb, oracle deviation |\n| **Options** | 5 | greeks, implied volatility, chains |\n| **Prediction markets** | 5 | live odds and market data |\n| **Catalysts & events** | 4 | token unlocks, scheduled events |\n| **Execution / MEV** | 4 | routing, execution and MEV signals |\n| **Compliance** | 4 | OFAC sanctions screening, wallet risk score, address labels, taint tracing |\n| **Pre-sign transaction safety** | 5 | pre-sign guardrail & simulation, balance-change preview, Pre-Sign Co-Pilot |\n| **Portfolio & PnL** | 4 | positions, PnL, tax lots, value-at-block, risk |\n| **Agent-to-agent escrow** | 4 | trustless A2A escrow primitives |\n| **DeFi lending** | 3 | health factors, liquidation scanner, rates |\n| **Solana safety** | 3 | Solana rug-check and simulation |\n| **Analytics** | 3 | onchain analytics and aggregates |\n| **AI gateway** | 3 | LLM inference (fast + frontier), payable in USDG on Robinhood Chain |\n| **Agent infrastructure** | ~30 | durable key-value memory, webhook scheduler, atomic counters, locks, queues, pub/sub, rate limits, idempotency, dead-man switches, inbox, HTML→markdown, extract, and more |\n\nFull, always-current machine-readable list: `GET /api/catalog` · human overview: https://agents.firmbrain.ai\n\n---\n\n## Drop-in — add once, call forever (TypeScript)\n\n`pay` is your x402-wrapped fetch (e.g. `wrapFetchWithPayment(fetch, signer)` — any x402 client).\nPaste this and your agent has Robinhood Chain (and the whole suite) in two lines. (Full file:\n[`rh.ts`](./rh.ts).)\n\n```ts\nconst RH = \"https://x402-services-production.up.railway.app/api\";\n\n/** One call to any endpoint, paid over x402. */\nexport async function rh(pay: typeof fetch, endpoint: string, body: object = {}) {\n  const r = await pay(`${RH}/${endpoint}`, {\n    method: \"POST\", headers: { \"content-type\": \"application/json\" }, body: JSON.stringify(body),\n  });\n  return r.json();\n}\n\n// examples:\nawait rh(pay, \"rhchain/balance\", { address: \"0x…\" });               // USDG + native balance\nawait rh(pay, \"rhchain/tx\", { hash: \"0x…\" });                       // did my tx land?\nawait rh(pay, \"rhchain/registry\");                                  // every RH tokenized stock -> address\nawait rh(pay, \"crypto/price\", { symbol: \"BTC\" });                  // any suite tool, same wrapper\nawait rh(pay, \"ai/chat\", { messages: [{ role: \"user\", content: \"…\" }] }); // LLM, pay in USDG\n```\n\n## Drop-in — webhook watcher (stop polling)\n\n```ts\n// get pushed an event whenever an address has a new ERC-20 transfer on Robinhood Chain\nawait rh(pay, \"rhchain/watch\", { address: \"0x…\", callbackUrl: \"https://your-agent.dev/hook\" });\n// we POST { watcherId, address, event, hash, token, timestamp } to your URL on each new transfer\n```\n\n## MCP (for agent frameworks)\n\nPoint your MCP client at `https://x402-services-production.up.railway.app/mcp` and call `tools/list`\n— all **147** tools (every Robinhood Chain tool plus the full suite) appear with JSON schemas.\nRegister it once as your agent's onchain + Robinhood Chain provider.\n\n---\n\n## How payment works\n\nFirst response is HTTP **402** with x402 payment terms. Settle in **USDC** on Base, Polygon,\nArbitrum, or Solana — or **USDG on Robinhood Chain** — and retry with the `X-PAYMENT` header. Any\nx402 client library does this automatically. No accounts, no keys, no subscriptions.\n\nBuilt for autonomous agents. Not financial, legal, or tax advice.\n",
  "bytes": 6918,
  "sha": "e35a35f134f287a7ebf5a58629f74e2855e72ca98146810d10489d2731c300a7",
  "repo_slug": "bkrigmo1/robinhood-chain-x402",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_ai_firmbrain_x402_services_31ee9ab1/readme"
}