• Creates and returns a Discovery class for discovering funds in a Bitcoin network using descriptors. The class provides methods for descriptor expression discovery, balance checking, transaction status checking, and so on.

    Parameters

    • explorer: Explorer

      The explorer instance that communicates with the Bitcoin network. It is responsible for fetching blockchain data like UTXOs, transaction details, etc.

    • network: Network

      The Bitcoin network to use. One of bitcoinjs-lib networks (or another one following the same interface).

    Returns {
        Discovery: typeof Discovery;
    }

    A Discovery class, constructed with the given explorer instance.