Class MobileWallet

This wallet allows interacting with SIP22 compatible mobile wallets via deeplinks.

Unlike the DesktopWallet, the MobileWallet uses direct deeplinks (signum://) supports the versatile sign command, and callback URLs for receiving responses from the mobile wallet app.

Constructors

Methods

  • Static helper to parse callback data from URL parameters. Use this in your callback pages to extract the data sent by the mobile wallet.

    The returned public key should be stored and used for further signing requests. The public key is required to create unsigned transactions byte sequences.

    Example usage in callback page:

    const data = MobileWallet.parseCallback();
    if (data.publicKey) {
    localStorage.setItem('signum-wallet-publicKey', data.publicKey);
    }
    if (data.status === 'success' && data.transactionId) {
    localStorage.setItem('signum-wallet-txId', data.transactionId);
    }

    Returns ConnectCallbackData