Accessing Accounts
rabet.connect()
.then(result => console.log(`User active public key is: ${result.publicKey}`))
.catch(error => console.error(`Error: ${error}`));
accountChanged event
Last updated
rabet.connect()
.then(result => console.log(`User active public key is: ${result.publicKey}`))
.catch(error => console.error(`Error: ${error}`));
Last updated
rabet.on('accountChanged', () => {
console.log('User changed their active account!');
});