Skip to main content

Reference / Modules / extension

Module: extension

Table of contents

Classes

Type Aliases

Variables

Functions

Type Aliases

InjectedAccount

Ƭ InjectedAccount: InjectedAccountWithMeta

Defined in

extension/src/Extension.ts:10


InjectedAccountsConsumer

Ƭ InjectedAccountsConsumer: (accounts: InjectedAccount[]) => void

Type declaration

▸ (accounts): void

Parameters
NameType
accountsInjectedAccount[]
Returns

void

Defined in

extension/src/Extension.ts:12


InjectedAccountsConsumerRegister

Ƭ InjectedAccountsConsumerRegister: (consumer: InjectedAccountsConsumer) => void

Type declaration

▸ (consumer): void

Parameters
NameType
consumerInjectedAccountsConsumer
Returns

void

Defined in

extension/src/Extension.ts:14

Variables

META_MASK_NAME

Const META_MASK_NAME: "Web3Source"

Defined in

extension/src/Extension.ts:27

Functions

allMetamaskAccounts

allMetamaskAccounts(): Promise<InjectedAccount[]>

Returns

Promise<InjectedAccount[]>

Defined in

extension/src/Extension.ts:34


enableMetaMask

enableMetaMask(appName): Promise<boolean>

Parameters

NameType
appNamestring

Returns

Promise<boolean>

Defined in

extension/src/Extension.ts:29


getAccounts

getAccounts(appName, extensions?): Promise<InjectedAccount[]>

Parameters

NameType
appNamestring
extensions?string[]

Returns

Promise<InjectedAccount[]>

Defined in

extension/src/Extension.ts:16


isExtensionAvailable

isExtensionAvailable(appName): Promise<boolean>

Parameters

NameType
appNamestring

Returns

Promise<boolean>

Defined in

extension/src/Extension.ts:5