CCC Docs
    Preparing search index...

    Function hashTypeToBytes

    • Converts a HashTypeLike value to its corresponding byte representation.

      Parameters

      Returns Bytes

      A Uint8Array containing the byte representation of the hash type.

      const hashTypeBytes = hashTypeToBytes("type"); // Outputs Uint8Array [0]