{"uid":"cap_P2pN20UTy7orLluDHLDaJ","slug":"finmath-sha1-hash-endpoint-8d8eda24","name":"finmath SHA1 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/sha1?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!"},"response":{"meta":{"tool":"sha1","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":{"hash":"0a0a9f2a6772942557ab5355d76af442f8f65e01"}}},"exampleRequest":{"input":"Hello, World!"},"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_pc4fBGQ0Mn5q5Gs9EfQEt","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 a SHA1 hash of a given input string, part of the finmath deterministic finance and crypto math microservice suite.","exampleAgentPrompt":"Can you compute the SHA1 hash of the string 'Hello, World!' and give me the digest?","exampleUseCases":null,"resultDescription":"Returns a JSON object with a 'result' field containing the SHA1 hash digest of the input string, plus a 'meta' object with call metadata.","failureModes":["Missing 'input' field returns validation error","Empty string input may return zero-length hash or error","Network timeout on Cloudflare Workers edge","Payment failure (HTTP 402) if USDC not provided","Malformed JSON body returns 400 error"],"whenToPreferThis":"Use this endpoint when you need a deterministic, exact SHA1 hash computation as a microservice call, particularly within workflows already using the finmath suite, or when LLM-native hashing is unreliable. Note: SHA1 is cryptographically weak; prefer SHA256 for security-critical use cases.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:40:38.096Z","isFirstParty":false,"canonicalSlug":"finmath-sha1-hash-endpoint-8d8eda24"}