ChemPal Documentation - v1.17.0
    Preparing search index...

    Variable getSolubilityConst

    getSolubility: (cid: PubChemCID) => Promise<string[] | undefined> = ...

    Fetches experimental solubility statements for a compound via PUG-View. Cached for three days.

    Type declaration

      • (cid: PubChemCID): Promise<string[] | undefined>
      • Parameters

        Returns Promise<string[] | undefined>

        Up to five solubility statements, or undefined if PubChem has none

    await getSolubility(180);
    // Returns: ["Miscible with water", "Miscible with benzene", ...]
    export const getSolubility: (cid: PubChemCID) => Promise<string[] | undefined> = withTtlCache(
    getSolubilityUncached,
    { namespace: 'solubilityByCid' },
    );