2. Connect to a Wallet

// request the user to accept / refuse a connection with a specific wallet
let objConnect = await this.siwc.async_connectWallet(_id);

Remember that the async_connectWallet function above will return after some time (the time for the user to reply in the wallet). You have the choice to "await" this function call, or to let it go and get called back on the onNotifyConnectedWallet callback (see initialization params)

The _id parameter used as input of async_connectWallet is the ID of the wallet, as disclosed by the wallet itself. You get the list of all possible IDs at startup thanks to the onNotifyAccessibleWallets which returns the list of all available wallet IDs.

Last updated