hash
Returns the hex and base64 digest of the input text. Default algorithm sha256. 0.001 USDC per call via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algo | No | sha1, sha256, sha384 or sha512 | sha256 |
| text | Yes | Input text (max 20,000 characters) | |
| paymentProof | No | Payment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof. |