[Which rail
micro-saas-agent.onrender.com/api/rails/route
[Which rail: x402 facilitator pick] Choose which rail and which x402 facilitator for one payment of this size. One recommendation: facilitator, chain, and why, chosen by amount and chain. Fee, settle time, and a live up/down/unknown flag are supporting fields from each facilitator public /supported endpoint (short timeout, cached a few minutes, fail-soft as unknown). ?chain=base&amount=1. $0.005 U
GET
https://micro-saas-agent.onrender.com/api/rails/routeUptime100% 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://micro-saas-agent.onrender.com/api/rails/route?amount=1&chain=base");
console.log(await res.json());Example input
{
"amount": 1,
"chain": "base"
}