def get_xpub(self, network, path):
        """
        RPC call to fetch an xpub for the given bip32 path for the given network.

        Parameters
        ----------
        network : str
            Network to which the xpub applies - eg. 'mainnet', 'liquid', 'testnet', etc.

        path : [int]
            bip32 path for which the xpub should be generated.

        Returns
        -------
        str
            base58 encoded xpub
        """
        params = {'network': network, 'path': path}
        return self._jadeRpc('get_xpub', params)

        RPC call to fetch an xpub for the given bip32 path for the given network.

        Parameters
        ----------
        network : str
            Network to which the xpub applies - eg. 'mainnet', 'liquid', 'testnet', etc.

        path : [int]
            bip32 path for which the xpub should be generated.

        Returns
        -------
        str
            base58 encoded xpub
        
electrum/plugins/jade/jadepy/jade.py