walletAddChain method

Future<void> walletAddChain(
  1. List<ChainParams> chainList
)

Creates a confirmation asking the user to add the specified chain to MetaMask.

The user may choose to switch to the chain once it has been added.

As with any method that causes a confirmation to appear, wallet_addEthereumChain should only be called as a result of direct user action, such as the click of a button.

Implementation

Future<void> walletAddChain(List<ChainParams> chainList) =>
    request('wallet_addEthereumChain', chainList);