Calculates the Keccak-256 hash of the given value.
import { keccak256 } from "thirdweb/utils";const hash = keccak256("0x1234");
function keccak256( value: `0x${string}` | Uint8Array, to?: TTo,): Keccak256Hash<TTo>;
The value to hash, either as a hexadecimal string or a Uint8Array.
let value: `0x${string}` | Uint8Array;
The desired output format of the hash (optional). Defaults to 'hex'.
let to: TTo;
let returnType: Keccak256Hash<TTo>;
The Keccak-256 hash of the value in the specified format.