Computes the keccak256 hash of hex-encoded string data, providing convenient hashing for blockchain-formatted data.
Examples
constresult = awaitkeccak256HexString("0x1234abcd"); if (result.error) { console.error("Hash generation failed:", result.error.readableMsg); } consthash = result.value; // Do something with the hash
Parameters
hex_string: string
Hex-encoded string with or without 0x prefix (must contain valid hex characters)
Computes the keccak256 hash of hex-encoded string data, providing convenient hashing for blockchain-formatted data.
Examples