browserUtils
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns the browser support for Ethereum
▸ onAddressChange(cb
: function): (Anonymous function)
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(cb
: function): (Anonymous function)
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
▸ getBrowserSupport(): | | |
Defined in
Returns: | | |
Defined in
Defined in