81trust / 100

Bank Validate

by bank-validate in Security & trust

x402 APIPassing, checked 4 h ago

Cheap structural IBAN validation: ISO 13616 checksum + per-country structure/length. Returns valid plus, on rejection, a granular error_type (invalid_checksum, invalid_length, invalid_structure, invalid_country), the country and the format spec. Offline (schwifty, MIT); no network or keys. A cheap-first entry before the fuller /bank/verify fusion route.

GET https://api.agentstools.dev/bank/validate

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
29 ms typical, 29 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.agentstools.dev/bank/validate?iban=DE89370400440532013000"
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%2Fapi.agentstools.dev%2Fbank%2Fvalidate
const res = await pay("https://api.agentstools.dev/bank/validate?iban=DE89370400440532013000");
console.log(await res.json());

Example input

{
  "iban": "DE89370400440532013000"
}

Example output

{
  "country": {
    "alpha_2": "DE",
    "alpha_3": "DEU",
    "name": "Germany",
    "numeric": "276"
  },
  "disclaimer": "Offline IBAN validation, not advice.",
  "error_type": "invalid_checksum",
  "format_spec": {
    "bban_length": 18,
    "bban_spec": "8!n10!n",
    "iban_length": 22
  },
  "iban": "DE89370400440532013001",
  "valid": false
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed40229 ms$0.003