Check an address before you pay it
apexfaucet.xyz/api/x402/countersign
Check an address before you pay it. Pass ?payTo=&chain= (base, ethereum, arc, bnb, solana, x1; x402 names like eip155:8453 work) and optionally amount, asset, payer, known (comma list of payees you already pay), or requirement= (the x402 402 body or base64 PAYMENT-REQUIRED header as-is, with chain= the chain you will pay on).
GET
https://apexfaucet.xyz/api/x402/countersignUptime100% 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://apexfaucet.xyz/api/x402/countersign?asset=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&chain=ethereum&known=&payTo=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&amount=25");
console.log(await res.json());Example input
{
"asset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"chain": "ethereum",
"known": "",
"payTo": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"amount": "25"
}