Duplicate payment check
apexfaucet.xyz/api/x402/check-duplicate
Duplicate payment check: flags a repeat x402 payment by resource, payee, amount and nonce inside a time window. Pass ?resource=<https URL>&payee=<0x>&amount=<atomic USDC, 3000 is $0.003, or a decimal like 0.003>&nonce=<0x and 64 hex>. Optional &window= seconds, default 600, clamped from 60 to 86400. Verdicts are FRESH, DUPLICATE or COULD_NOT_RECORD, EIP-712 signed (domain APEX DuplicateGuard, vers
GET
https://apexfaucet.xyz/api/x402/check-duplicateUptime100% of 5 checks 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://apexfaucet.xyz/api/x402/check-duplicate?nonce=0x0000000000000000000000000000000000000000000000000000000000000001&payee=0x3600000000000000000000000000000000000000&amount=3000&window=600&resource=https%3A%2F%2Fexample.com%2Fapi%2Fx402%2Fweather-now");
console.log(await res.json());Example input
{
"nonce": "0x0000000000000000000000000000000000000000000000000000000000000001",
"payee": "0x3600000000000000000000000000000000000000",
"amount": "3000",
"window": "600",
"resource": "https://example.com/api/x402/weather-now"
}