kernl API
    Preparing search index...

    Function catalogIdForRef

    • kehto's catalogue id for a preference reference: a named or root coordinate, or a snapshot id. kehto keys named applets by publisher, kind and d, roots by publisher and kind, snapshots by event id.

      Parameters

      • ref: string

        35129:<pubkey>:<d>, 15129:<pubkey>: or a 64-hex snapshot id.

      Returns string | undefined

      The catalogue id, or undefined for anything else.

      catalogIdForRef(`35129:${pubkey}:notepad`); // `nip5d:35129:${pubkey}:notepad`