agent402.tools/api/onramp-link
Generate a single-use hosted onramp URL that lets a human fund any wallet with a card or Apple Pay - the fastest way to put real USDC into an agent's wallet. Returns the ready-to-open URL, and a fee-inclusive quote when the onramp provides one. Networks: base, ethereum, polygon, arbitrum, optimism, solana.
POST
https://agent402.tools/api/onramp-linkUptimeNot 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://agent402.tools/api/onramp-link", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"amount":"10","address":"0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0","network":"base"}),
});
console.log(await res.json());Example input
{
"amount": "10",
"address": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
"network": "base"
}