getConnectionStatus

getConnectionStatus(callbackFunc);

Parameters

callbackFunc: callback functions for getting wallet balance

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
}

Last updated