disconnect

Function using for disconnect web3 wallet

Wallets supported

  • MetaMask

  • WalletConnect EVM

  • CoinbaseWallet

  • Trust

Disconnecting MetaMask, CoinbaseWallet, Trust wallets doesn't actually disconnect it, it just returns true. This function actually terminates the connection only with WalletConnect EVM.

Input parameters

// JavaScript

const data = {
    wallet: 'WalletConnect', // required
}

Using

// JavaScript

const isDisconnect = await disconnect(data)

Return

Return true if disconnect success, else false.

Last updated