CCC Docs
    Preparing search index...

    Function hashTypeId

    • Computes the Type ID hash of the given data.

      Parameters

      • cellInputLike: CellInputLike

        The first cell input of the transaction.

      • outputIndex: NumLike

        The output index of the Type ID cell.

      Returns `0x${string}`

      The hexadecimal string representation of the hash.

      const hash = hashTypeId(cellInput, outputIndex); // Outputs something like "0x..."