Function getTransactionExplorerUrl

Gets the block explorer URL for a transaction receipt

getTransactionExplorerUrl({ chainId: 1, txHash: '0x1234567890123456789012345678901234567890' })
// returns 'https://etherscan.io/tx/0x1234567890123456789012345678901234567890'
  • Parameters

    • __namedParameters: {
          chainId: number;
          txHash: `0x${string}`;
      }
      • chainId: number
      • txHash: `0x${string}`

    Returns string

    The block explorer URL for viewing the transaction