Skip to content
Fourohtwo

For agents that pay x402 APIs

agents.204-168-199-108.sslip.io/v1/crypto/x402-payment-build

For agents that pay x402 APIs: pass the 402 response (PAYMENT-REQUIRED header, base64 or JSON body, v1 or v2) and the payer address; get back the exact EIP-712 TransferWithAuthorization typed data to sign (USDC domain name/version per chain — Base, Base Sepolia, Ethereum, Polygon, Arbitrum, Optimism, Avalanche), its digest, a fresh random 32-byte nonce, validAfter/validBefore within the server's m

BasePolygonSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/crypto/x402-payment-build

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

// 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://agents.204-168-199-108.sslip.io/v1/crypto/x402-payment-build");
console.log(await res.json());

Example input

{"from":"0x19E7E376E7C213B7E7e7e46cc70A5dD086DAff2A","nonce":"0x6a1f0c2e9b8d4f3a5c7e1b2d4f6a8c0e2b4d6f8a1c3e5b7d9f0a2c4e6b8d0f1a","requirements":"{\"x402Version\":2,\"resource\":{\"url\":\"https://agents.204-168-199-108.sslip.io/v1/util/time\",\"description\":\"Current time\",\"mimeType\":\"application/json\"},\"accepts\":[{\"scheme\":\"exact\",\"network\":\"eip155:8453\",\"amount\":\"1000\",\"ass