• Computes the standard descriptor based on given parameters.

    You can define the output location either by:

    • Providing the full keyPath (e.g., "/0/2"). OR
    • Specifying the change and index values separately (e.g., {change:0, index:2}).

    For ranged indexing, the index can be set as a wildcard '*'. For example:

    • keyPath="/0/*" OR
    • {change:0, index:'*'}.

    Parameters

    • __namedParameters: {
          masterNode: BIP32Interface;
          network?: Network;
          account: number;
          change?: number;
          index?: number | "*";
          keyPath?: string;
          isPublic?: boolean;
      }
      • masterNode: BIP32Interface
      • Optional network?: Network

        Default

        networks.bitcoin
        
      • account: number
      • Optional change?: number
      • Optional index?: number | "*"
      • Optional keyPath?: string
      • Optional isPublic?: boolean

        Compute an xpub or xprv

        Default

        true
        

    Returns string