Skip to content
Fourohtwo

agent-paycheck.onrender.com/v1/check

Pre-payment risk and usefulness check for AI agents deciding whether to pay an x402 endpoint.

BaseAnswering
POSThttps://agent-paycheck.onrender.com/v1/check

Uptime100% of 4 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-paycheck.onrender.com/v1/check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"endpoint_url":"https://example.com/x402/search","max_budget_usd":0.01,"output_schema":{"available":"boolean"},"price_usd":0.002,"recent_activity":{"last_30_days":120},"task":"check current product availability before purchase"}),
});
console.log(await res.json());

Example input

{
  "endpoint_url": "https://example.com/x402/search",
  "max_budget_usd": 0.01,
  "output_schema": {
    "available": "boolean"
  },
  "price_usd": 0.002,
  "recent_activity": {
    "last_30_days": 120
  },
  "task": "check current product availability before purchase"
}