I am trying to call this function which will trigger metamask to change the chain to rinkeby test net but it's not working, It is working for other chains like polygon mainnet and binance mainnet but for Rinkeby it not doing anything
await window.ethereum.request({
method: 'wallet_switchEthereumChain',
params: [{
chainId: `0x${Number(4).toString(16)}`,
chainName: "Rinkeby",
nativeCurrency: {
name: "Rinkeby Ether",
symbol: "RIN",
decimals: 18
},
rpcUrls: ["https://rinkeby.infura.io/v3/"],
blockExplorerUrls: ["https://rinkeby.etherscan.io"]
}]
});