80trust / 100

T Cui Gt Validate

by Toll402 in Developer tools

x402 APIPassing, checked 19 min ago

Offline validator for a Guatemalan CUI (Código Único de Identificación), the 13-digit national ID number. Parses the 13 digits into an 8-digit correlative, a 1-digit check digit, a 2-digit department code and a 2-digit municipality code, recomputes the check digit using the published weighted mod-11 formula (weights 2-9 over the 8 correlative digits, mod 11, 10→0) and compares it, returning validity plus the parsed components.

POST https://toll402.dev/v1/t/cui_gt_validate

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
129 ms typical, 129 ms slowest 5%
Last check
19 min ago
Next check
in 11 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://toll402.dev/v1/t/cui_gt_validate" \
  -H "content-type: application/json" \
  -d '{"cui":"1234567890101"}'
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%2Ftoll402.dev%2Fv1%2Ft%2Fcui_gt_validate
const res = await pay("https://toll402.dev/v1/t/cui_gt_validate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"cui":"1234567890101"}),
});
console.log(await res.json());

Example input

{
  "cui": "1234567890101"
}

Example output

{
  "ok": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
19 min agoPassed402126 ms$0.001
4 h agoPassed402131 ms$0.001
9 h agoPassed402129 ms$0.001