@tremendous/help
    Preparing search index...

    Function blockExplorerTxUrl

    • Builds the block explorer URL for a crypto transaction.

      Parameters

      • network: string | undefined

        The network the transaction settled on, as the vendor names it (e.g. "ETHEREUM").

      • transactionHash: string | undefined

        The on-chain transaction hash.

      Returns string | undefined

      The explorer URL, or undefined when either argument is missing or the network has no known explorer.

      blockExplorerTxUrl("ETHEREUM", "0xabc"); // "https://etherscan.io/tx/0xabc"
      blockExplorerTxUrl("DOGECOIN", "0xabc"); // undefined