Web3 & MetaMask - Bubble plugin
Get PluginAll our plugins
  • Overview
  • Quick Start Example
  • Elements details
    • Web3 & MetaMask
      • Connect To MetaMask
      • Disconnect MetaMask
      • Send token With MetaMask
      • Get Balance of a Token
      • Get Balance of Multiple Tokens
      • Get Token Symbol
      • Sign
      • Check signature
      • Sign Typed Data
      • Check signature-Typed Data
      • Smart Contract - Read
        • Example - CAKE/BUSD rate on Pancaksewap
      • Smart Contract - Write
        • Example - Write a function
      • Trigger Switch Chain
      • Approve - Set Allowance
      • Revoke Allowance
      • Deploy Contract
      • Add Chain to MetaMask
      • Get NFT Metadata
      • Check NFT Balance
      • Smart Contract - Read
      • Smart Contract - Write
    • Web3 Utils
      • Get Transaction confirmations
      • Get Transaction Details
      • To Wei
      • From Wei
      • Add Token to MetaMask
      • Get ENS data
      • Get ENS Domain from Address
  • Use with other Wallets & Plugins
  • Sign up a user with signature
  • How to use on Mobile
Powered by GitBook
On this page
  • Demo page
  • Parameters
  • Events
  1. Elements details
  2. Web3 & MetaMask

Trigger Switch Chain

Trigger MetaMask to switch to desired chain

PreviousExample - Write a functionNextApprove - Set Allowance

Last updated 2 years ago

Parameters

Parameter Name
Type
Description

Chain ID

Number

If you don't know the ID, find it here:

Events

Name
Description

MetaMask Chain ID Changed

Chain ID not added in the Wallet

Triggered if the given Chain ID is not added in MetaMask, in this case you can run the to add it

Demo page
https://chainlist.org/
Add Chain to MetaMask action