InputPOST /api/v1/x402/luhn-valid
{
"number": "4111111111111111"
}
Agent reliability and security · agent-reliability-security
Luhn check for digit strings (cards/IDs). Call when you reject obviously invalid card-shaped numbers before payment UI. Returns valid boolean and digit count for $0.001 USDC via x402 on Base. Checksum only—not issuer, funds, or PAN storage. No network, no keys, no retention. Results are advisory; the caller owns budgets, auth, and production controls.
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/luhn-valid -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"number":"4111111111111111"}'
{
"number": "4111111111111111"
}
{
"schema": "delx/util-luhn-valid/v1",
"valid": true,
"digits": 16
}
Machine-readable evidence