Associated methods or objects for interacting with the Ethereum blockchain.
The associated web3 object. Please refer to web3 documentation for more information
The associated ethereum object, which acts as a web3 provider. For more information on the window.ethereum specification, refer to Metamask documentation here.
The associated provider object
This changes the network provider to a specified network. You can pass an RPC endpoint here. Opens a popup that requires user confirmation.
NetworkInterface: The network options. Used to specify a network provider
string: The hostname or the
JSON-RPCendpoint. Supported options for hostname are
number(optional) : ChainId of the network.
string(optional) : Name of the network.
Promise<void>: Returns a promise which resolves to void.