Documentation
    Preparing search index...

    Function buildHandlerUrl

    • Expand a handler URL template by substituting its <bech32> / <raw> placeholders.

      Returns undefined when the template requires a placeholder you didn't supply (e.g. it contains <bech32> but values.bech32 is missing) — so a caller can fall through to the next target instead of producing a broken URL.

      Parameters

      Returns string | undefined

      The expanded URL, or undefined if a needed placeholder is absent

      buildHandlerUrl({ url: 'https://app/e/<bech32>', entity: 'nevent' }, { bech32: 'nevent1…' });
      // 'https://app/e/nevent1…'