> For the complete documentation index, see [llms.txt](https://docs.novabloq.com/web3-metamask/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.novabloq.com/web3-metamask/elements-details/web3-and-metamask/trigger-switch-chain.md).

# Trigger Switch Chain

### [Demo page](https://web3-demo.bubbleapps.io/version-test/switch_chain)

### &#x20; <mark style="background-color:blue;">Parameters</mark>&#x20;

<table><thead><tr><th width="187.33333333333331">Parameter Name</th><th width="95">Type</th><th>Description</th></tr></thead><tbody><tr><td>Chain ID</td><td>Number</td><td>If you don't know the ID, find it here: <a href="https://chainlist.org/">https://chainlist.org/</a></td></tr></tbody></table>

### &#x20;<mark style="background-color:blue;">Events</mark>&#x20;

<table><thead><tr><th width="292.5">Name</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>MetaMask Chain ID Changed</td><td></td><td></td></tr><tr><td>Chain ID not added in the Wallet</td><td>Triggered if the given Chain ID is not added in MetaMask, in this case you can run the <a href="/pages/OPWWYmKeINuFZtVqcHlu">Add Chain to MetaMask action</a> to add it</td><td></td></tr></tbody></table>
