Skip to content
Fourohtwo

dev.kagurazaka.dev/v1/requirements

Builds an x402 v2 PaymentRequired object for a price in dollars on one or more networks, with the right USDC contract, atomic amount and EIP-712 domain (name and version) for each, plus the base64 PAYMENT-REQUIRED header value to send with the 402.

BaseAnswering
POSThttps://dev.kagurazaka.dev/v1/requirements

Uptime100% of 1 check 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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://dev.kagurazaka.dev/v1/requirements", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"networks":["eip155:8453","eip155:84532"],"pay_to":"0xF1643BD00D3c071d9a0c12A4E7d3a17e6E19f8a5","price_usd":0.001,"resource":"https://api.example.com/v1/weather"}),
});
console.log(await res.json());

Example input

{
  "networks": [
    "eip155:8453",
    "eip155:84532"
  ],
  "pay_to": "0xF1643BD00D3c071d9a0c12A4E7d3a17e6E19f8a5",
  "price_usd": 0.001,
  "resource": "https://api.example.com/v1/weather"
}

More from x402 Dev Tools