connect
1
connect(callbackFunc);
Copied!

Parameters

callbackFunc: callback functions for getting wallet connection status

Returns in callback function

1
{
2
status: true, // connection status
3
address: "HXXXXX...", // last used address in hathorpay
4
addresses: [ // all address lists with index
5
{address: "XXX...", index: 0},
6
{address: "YYY...", index: 1},
7
...
8
],
9
pk: "xpub..." // public key of your wallet
10
}
Copied!
or
1
{
2
status: false // connection status
3
}
Copied!