# Enable Request
When Enzyme extension is accessed by DApp due to security reasons user must go through Enable request allowing DApps access to Blockchain and related accounts
# Javascript
import { web3Enable } from '@polkadot/extension-dapp';
// returns an array of all the injected sources
// (this needs to be called first, before other requests)
// It will open the extension for authorization
const allInjected = await web3Enable('my cool dapp');
1
2
3
4
5
6
7
2
3
4
5
6
7

You can allow or reject to authorized dApp. Once you allow you can call following web3Accounts() to get all the accounts.
import { web3Accounts } from '@polkadot/extension-dapp';
// returns an array of { address, meta: { name, source } }
// meta.name contains the alias of this account
// meta.source contains the name of the extension that provides this account
const allAccounts = await web3Accounts();
1
2
3
4
5
6
7
2
3
4
5
6
7