1. Initialize SIWW client lib
npm install @incubiq/siwwconst SIWW = require('@incubiq/siww');
// instanciate the cardano connector
this.siww=SIWW.getConnector("cardano");
// register all callbacks with SIWW
this.siww.async_initialize({
onNotifyAccessibleWallets: function(_aWallet){
this.onSIWCNotify_WalletsAccessible(_aWallet);
}.bind(this),
onNotifyConnectedWallet: function(_wallet){
this.onSIWCNotify_WalletConnected(_wallet);
}.bind(this),
onNotifySignedMessage: function(_wallet){
this.onSIWCNotify_SignedMessage(_wallet);
}.bind(this),
});Last updated