connect

connect(callbackFunc);

Parameters

callbackFunc: callback functions for getting wallet connection status

Returns in callback function

{
status: true, // connection status
address: "HXXXXX...", // last used address in hathorpay
addresses: [ // all address lists with index
{address: "XXX...", index: 0},
{address: "YYY...", index: 1},
...
],
pk: "xpub..." // public key of your wallet
}
or
{
status: false // connection status
}