Hash + encode/decode
hash_encodeHash data (SHA-256/512, SHA3, Keccak-256, BLAKE2, MD5, SHA-1, RIPEMD-160, HMAC) and convert between utf8, hex, base64, base64url and base58 — exact, in one call. Useful for signatures, content addressing, EVM selectors (keccak of a function signature), and decoding blobs agents are handed. Input can itself be hex/base64/base58. Price: free. Errors: returns isError with a message for invalid input or an upstream failure (not charged).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Data to hash or re-encode. | |
| hashes | No | sha256, sha512, sha3-256, sha3-512, keccak256, blake2b512, blake2s256, md5, sha1, ripemd160. 0-12 items. Default ["sha256","keccak256"]. | |
| hmac_key | No | if set, HMAC instead of plain hash (utf8 key) | |
| input_encoding | No | How the input string is encoded. One of "utf8", "hex", "base64", "base58". Default "utf8". | utf8 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | No | ||
| hashes | No | ||
| encodings | No |