{"uid":"cap_cFKh9WkpY61sWQGbEdMDU","slug":"finmath-sha-256-hash-endpoint-8ce7e1b3","name":"finmath SHA-256 Hash Endpoint","description":"Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.","url":"https://finmath.qzqh5rrbkz.workers.dev/v1/sha256?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"input"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"input":"Hello, world! This is my transaction payload."},"response":{"meta":{"tool":"sha256","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":{"hash":"395f1c9c2f48bed988da964799d7c72d7acce894be814db00dd8980e30cf9ba5"}}},"exampleRequest":{"input":"Hello, world! This is my transaction payload."},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2U8Hc94EluciY1vNaUnvt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the SHA-256 cryptographic hash of a given input string, returning a deterministic hex digest.","exampleAgentPrompt":"Can you compute the SHA-256 hash of the string 'Hello, world! This is my transaction payload.' using exact deterministic arithmetic — I need the hex digest to verify data integrity.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a 'result' field containing the SHA-256 hex digest of the input string, plus a 'meta' object with call metadata. The hash is deterministic and model-free.","failureModes":["Missing or empty 'input' field returns a validation error","Payment of 0.001 USDC not provided returns a 402 Payment Required response","Invalid JSON body causes a parse error","Extremely large input strings may exceed worker payload limits","Network timeout from Cloudflare Workers cold start"],"whenToPreferThis":"Choose this endpoint when you need a guaranteed deterministic SHA-256 hash computed server-side rather than relying on an LLM's potentially hallucinated or approximate output. Useful for data integrity checks, transaction payload fingerprinting, or verifying stored digests where exact correctness is critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:38:59.975Z","isFirstParty":false,"canonicalSlug":"finmath-sha-256-hash-endpoint-8ce7e1b3"}