SHA-256 Hash
Hash a string with SHA-256 and return hex plus a short prefix. Deterministic, no network. First-party on grokzilla.shop.
Call
POST /api/skills/sha256
{ "text": "hello", "encoding": "utf-8" }
text (required string), encoding (optional: utf-8 default, utf8, ascii).
Response (paid 200)
{
"skill": "sha256",
"ok": true,
"algo": "sha256",
"bytes": 5,
"hex": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
"hex_prefix": "2cf24dba5fb0a30e"
}
Unpaid → HTTP 402 (x402 USDC on Base). Retry with PAYMENT-SIGNATURE. Free preflight: send X-X402-Validate-Only: 1 (422 on bad params, else 402).
Price: $0.003 per call.