Reference / Modules / extension
Module: extension
Table of contents
Classes
Type Aliases
Variables
Functions
Type Aliases
InjectedAccount
Ƭ InjectedAccount: InjectedAccountWithMeta
Defined in
InjectedAccountsConsumer
Ƭ InjectedAccountsConsumer: (accounts
: InjectedAccount
[]) => void
Type declaration
▸ (accounts
): void
Parameters
Name | Type |
---|---|
accounts | InjectedAccount [] |
Returns
void
Defined in
InjectedAccountsConsumerRegister
Ƭ InjectedAccountsConsumerRegister: (consumer
: InjectedAccountsConsumer
) => void
Type declaration
▸ (consumer
): void
Parameters
Name | Type |
---|---|
consumer | InjectedAccountsConsumer |
Returns
void
Defined in
Variables
META_MASK_NAME
• Const
META_MASK_NAME: "Web3Source"
Defined in
Functions
allMetamaskAccounts
▸ allMetamaskAccounts(): Promise
<InjectedAccount
[]>
Returns
Promise
<InjectedAccount
[]>
Defined in
enableMetaMask
▸ enableMetaMask(appName
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
appName | string |
Returns
Promise
<boolean
>
Defined in
getAccounts
▸ getAccounts(appName
, extensions?
): Promise
<InjectedAccount
[]>
Parameters
Name | Type |
---|---|
appName | string |
extensions? | string [] |
Returns
Promise
<InjectedAccount
[]>
Defined in
isExtensionAvailable
▸ isExtensionAvailable(appName
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
appName | string |
Returns
Promise
<boolean
>