Skip to content
Fourohtwo

Should my agent pay this x402 endpoint

kr-x402-mvp.kgy5612.workers.dev/crypto/x402-check

Should my agent pay this x402 endpoint? Live pre-payment check of ANY x402 URL (never pays it): we GET the target unpaid and decode its 402 quote (PAYMENT-REQUIRED header for v2, JSON body for v1) -> x402 version, every accepts[] option with real USD price (atomic amount / decimals), network name, asset (is it canonical USDC on that chain?), scheme, payTo, maxTimeoutSeconds, resource URL match, Ba

BaseAnswering
GEThttps://kr-x402-mvp.kgy5612.workers.dev/crypto/x402-check

Uptime100% of 2 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://kr-x402-mvp.kgy5612.workers.dev/crypto/x402-check?url=https%3A%2F%2Fkr-x402-mvp.kgy5612.workers.dev%2Fcrypto%2Fping&max_usd=0.01");
console.log(await res.json());

Example input

{
  "url": "https://kr-x402-mvp.kgy5612.workers.dev/crypto/ping",
  "max_usd": 0.01
}

More from Crypto Microdata for AgentsProvider status