Properties
Protected account
account: Account
Protected web3
web3: default
Methods
connect
- connect(): Promise<boolean>
getAddress
- getAddress(): Promise<string>
getBalance
- getBalance(): Promise<string>
getETHNetworkId
- getETHNetworkId(): Promise<number>
start
- start(restart?: boolean): void
switchToAccount
- switchToAccount(account: string | Account): void
Parameters
account: string | Account
Returns void
Request user to connect web3 plugin with the provider (and assign window.web3)