Canton dApp Booster
    Preparing search index...
    • Holds an explorer config so call sites pass only an identifier, and returns getExplorerLink bound to it.

      Parameters

      Returns (value: string, entity?: ExplorerEntity) => string | undefined

      on render when explorer.baseUrl is empty or blank, as getExplorerLink does.

      const explorerLink = useExplorerLink({ baseUrl: 'https://scan.example' })
      <Identifier value={partyId} href={explorerLink(partyId)} />
      <Identifier value={cid} href={explorerLink(cid, 'contract')} />
      // no href at all where the value matched no shape and no entity said otherwise