> For the complete documentation index, see [llms.txt](https://docs.ready.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ready.co/ready-wallets/ready-wallet/network-switcher-for-dapps.md).

# Network Switcher for Dapps

The `wallet_switchStarknetChain` can be used by dapps to request that the wallet switches its active Starknet Network.

### Params

1\. **SwitchStarknetChainParameter** *(required)*

`chainId` (required)

MUST specify the integer ID of the chain as a short string.

```javascript
'SN_MAIN' || 'SN_GOERLI'
```

### Example

#### Request

```javascript
await window.starknet.request({
  type: "wallet_switchStarknetChain",
  params: {
    chainId: "SN_MAIN"
  }
});
```

#### Result

```
"null"
```
