Connect an æpp to a wallet
Prerequisites
1. Specify imports and constants
https://github.com/aeternity/aepp-sdk-js/blob/f60d1b8a1124b32781769342e4941c8dacf6ad53/examples/browser/aepp/src/StoreAeSdkPlugin.js#L1-L5
2. Initialize the AeSdkAepp class
AeSdkAepp classhttps://github.com/aeternity/aepp-sdk-js/blob/f60d1b8a1124b32781769342e4941c8dacf6ad53/examples/browser/aepp/src/StoreAeSdkPlugin.js#L34-L49
3. Scan for wallets and connect to a wallet
https://github.com/aeternity/aepp-sdk-js/blob/f60d1b8a1124b32781769342e4941c8dacf6ad53/examples/browser/aepp/src/Connect.vue#L66-L85
await this.aeSdk.connectToWallet(wallet.getConnection(), {
connectNode: true,
name: 'wallet-node',
select: true,
});Last updated
Was this helpful?