81trust / 100

Hex Prefix

by Delx Hex Prefix in Search & web

x402 APIPassing, checked 4 h ago

Normalize a hexadecimal string with optional prefix and even-length validation. Call when you need this bounded result before handing data to a downstream tool. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Honest limit: execution uses only caller-supplied data in memory; it does not call a paid upstream, retain input, search the web, read a live RPC, or invoke a media generator. Results are advisory; the caller owns authorization, budgets, and production control…

POST https://api.delx.ai/api/v1/x402/hex-prefix

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
6 ms typical, 6 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 POST "https://api.delx.ai/api/v1/x402/hex-prefix" \
  -H "content-type: application/json" \
  -d '{"hex":"abc","prefer_0x":true}'
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.delx.ai%2Fapi%2Fv1%2Fx402%2Fhex-prefix
const res = await pay("https://api.delx.ai/api/v1/x402/hex-prefix", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"hex":"abc","prefer_0x":true}),
});
console.log(await res.json());

Example input

{
  "hex": "abc",
  "prefer_0x": true
}

Example output

{
  "even_length": 4,
  "hex": "0x0abc",
  "prefer_0x": true,
  "schema": "delx/util-hex-prefix/v1",
  "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 agoPassed4026 ms$0.001