Skip to main content

Connect

Connect your dapp to Algorand users's wallets. User should grant access and choose the wallets that wish to share with your dapp.

Preconditions#

  • User must have MyAlgo Wallet Account previously set in MyAlgo Wallet to be able to connect to the dapp. Otherwise user will be alerted in MyAlgo Connect popup.

  • User should have a wallet previously added in MyAlgo Wallet in order to be able to share it. Otherwise user will be aleted in MyAlgo Connect popup.

Interactive Example#

Params
shouldSelectOneAccount
openManager
import MyAlgoConnect from '@randlabs/myalgo-connect';

const myAlgoConnect = new MyAlgoConnect({ disableLedgerNano: false });

const settings = {
    shouldSelectOneAccount: false,
    openManager: false
};

const accounts = await myAlgoConnect.connect(settings);