ExplorerProvider class is responsible for generating URLs for blockchain explorers. It constructs explorer URLs and replaces placeholders with specific addresses or transaction IDs.

Constructors

  • Constructor for ExplorerProvider class.

    Parameters

    • explorerUrl: string

      The base URL of the blockchain explorer

    • explorerAddressUrlTemplate: string

      The template URL for address exploration

    • explorerTxUrlTemplate: string

      The template URL for transaction exploration

    Returns ExplorerProvider

Properties

explorerAddressUrlTemplate: string
explorerTxUrlTemplate: string
explorerUrl: string

Methods

  • Get the URL for exploring a specific address.

    Parameters

    • address: string

      The address to be explored

    Returns string

    The URL for exploring the specified address

  • Get the URL for exploring a specific transaction.

    Parameters

    • txID: string

      The transaction ID to be explored

    Returns string

    The URL for exploring the specified transaction

Generated using TypeDoc