Generate a random integer and hex bytes
www.api-xpay.com/x402/random
Generate a random integer and hex bytes
GET
https://www.api-xpay.com/x402/randomUptimeNot checked yet
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://www.api-xpay.com/x402/random");
console.log(await res.json());More from X Pay
- www.api-xpay.com/x402/classifyAI topic classification of text20.00
- www.api-xpay.com/x402/echoEcho a JSON message back0.005
- www.api-xpay.com/x402/ipReturn the requester IP address0.005
- www.api-xpay.com/x402/keywordsAI keyword extraction from text10.00
- www.api-xpay.com/x402/networkBase network and USDC payment metadata0.005
- www.api-xpay.com/x402/paymentPayment receipt with transaction details0.005
- www.api-xpay.com/x402/pingHealth check ping0.005
- www.api-xpay.com/x402/quotePayment quote with amount, asset, and merchant wallet0
- www.api-xpay.com/x402/rewriteAI rewrite of input text10.00
- www.api-xpay.com/x402/sentimentAI sentiment analysis of text10.00
- www.api-xpay.com/x402/statusService status and payment configuration0.005
- www.api-xpay.com/x402/timeCurrent server time in UTC0.005
