Raindex SDK Documentation
    Preparing search index...

    Function keccak256HexString

    • Computes the keccak256 hash of hex-encoded string data, providing convenient hashing for blockchain-formatted data.

      const result = await keccak256HexString("0x1234abcd");
      if (result.error) {
      console.error("Hash generation failed:", result.error.readableMsg);
      }
      const hash = result.value;
      // Do something with the hash

      Parameters

      • hex_string: string

        Hex-encoded string with or without 0x prefix (must contain valid hex characters)

      Returns WasmEncodedResult<string>

      Hex-encoded hash with 0x prefix (66 characters total)