81trust / 100
Utility Luhn Check
by dt0ur.online in Other
x402 APIPassing, checked 45 min ago
Validates a credit card or IMEI number against the Luhn checksum algorithm.
POST https://dt0ur.online/api/utility/luhn-check
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 200 ms typical, 200 ms slowest 5%
- Last check
- 45 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://dt0ur.online/api/utility/luhn-check" \
-H "content-type: application/json" \
-d '{"number":"4111 1111 1111 1111"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fdt0ur.online%2Fapi%2Futility%2Fluhn-check
const res = await pay("https://dt0ur.online/api/utility/luhn-check", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"number":"4111 1111 1111 1111"}),
});
console.log(await res.json());Example input
{
"number": "4111 1111 1111 1111"
}Example output
{
"valid": true
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 45 min ago | Passed | 402 | 239 ms | $0.01 |
| 6 h ago | Passed | 402 | 200 ms | $0.01 |