browserUtils

Index

Enumerations

Interfaces

Functions

Functions

getBrowserSupport

Defined in src/browserUtils.ts:45

Returns the browser support for Ethereum

onAddressChange

â–¸ onAddressChange(cb: function): (Anonymous function)

Defined in src/browserUtils.ts:189

Runs the callback anytime the wallet address changes in the browser

Parameters:

â–ª cb: function

callback that receives the new address and the previous one

â–¸ (newAddress: string, previousAddress?: undefined | string): void

Parameters:

Name

Type

newAddress

string

previousAddress?

undefined | string

Returns: (Anonymous function)

an unsubscribe function

onNetworkChange

â–¸ onNetworkChange(cb: function): (Anonymous function)

Defined in src/browserUtils.ts:225

Runs the callback anytime the current network changes in the browser

Parameters:

â–ª cb: function

callback that receives the new network id and the previous one

â–¸ (newNetwork: number, previousNetwork?: undefined | number): void

Parameters:

Name

Type

newNetwork

number

previousNetwork?

undefined | number

Returns: (Anonymous function)

an unsubscribe function

Last updated

Was this helpful?