Usage: wallet.fromHDPublicKey(HDPublicKey)
Description: Initialize a Wallet from a HDPublicKey representation.
Notes: This is an internal method, in the future, when TC39 proposal pass, we will use the private markup.

Parameters:

parameters type required Description
HDPublicKey HDPublicKey String yes

Returns : void (set a HD Wallet in watch mode).

Examples :

wallet.fromHDPrivateKey('tpubDEB6BgW9JvZRWVbFmwwGuJ2vifakABuxQWdY9yXbFC2rc3zagie1RkhwUEnahb1dzaapchEVeKqKcx99TzkjNvjXcmoQkLJwsYnA1J5bGNj')