81trust / 100

Check

by Agent Paycheck in Markets & finance

x402 APIPassing, checked 3 h ago

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

POST https://agent-paycheck.onrender.com/v1/check

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
253 ms typical, 253 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent-paycheck.onrender.com/v1/check" \
  -H "content-type: application/json" \
  -d '{"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"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent-paycheck.onrender.com%2Fv1%2Fcheck
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"
}

Example output

{
  "decision": "pay",
  "next_step": "Proceed with payment if the agent still needs this exact result.",
  "reasons": [
    "Task intent was provided.",
    "Price is present and within the stated budget.",
    "The endpoint exposes schema or OpenAPI metadata."
  ],
  "recommended_max_price_usd": 0.01,
  "score": 87,
  "warnings": []
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402253 ms$0.002